DOP-C02 exam dumps

DOP-C02 practice question 53 of 411

AWS Certified DevOps Engineer - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

DOP-C02 Question 53

Select 3

Your organization uses AWS CodePipeline to automate the deployment of a web application. As part of your CI/CD process, you generate artifacts during the build stage, such as application binaries, configuration files, and test reports. To optimize costs and comply with regulatory requirements, which actions should you take to manage the lifecycle of these artifacts in Amazon S3?

  1. A

    Configure an S3 Lifecycle policy to transition artifacts to Amazon S3 Glacier after 30 days.

  2. B

    Enable versioning on the S3 bucket to retain all versions of the artifacts indefinitely.

  3. C

    Set up an S3 Lifecycle policy to permanently delete artifacts older than 90 days.

  4. D

    Use Amazon S3 Intelligent-Tiering to automatically move artifacts to the most cost-efficient storage class.

  5. E

    Store all build artifacts in the S3 Standard storage class indefinitely for easy accessibility.

Show answer and explanation

Correct answers: A, C, D

Explanation

Managing the lifecycle of build artifacts is critical to optimizing storage costs and adhering to data retention policies. AWS S3 provides tools like Lifecycle policies and Intelligent-Tiering to help automate these processes. Transitioning artifacts to Amazon S3 Glacier or Intelligent-Tiering reduces costs for infrequently accessed data, while deleting older artifacts ensures storage is not wasted. Retaining all versions indefinitely without a cleanup strategy or keeping artifacts in the S3 Standard storage class indefinitely is not cost-efficient.

  • A. Correct.

    Correct: Configuring an S3 Lifecycle policy to transition artifacts to Amazon S3 Glacier after 30 days helps reduce storage costs by moving infrequently accessed data to a cheaper storage class.

  • B. Incorrect.

    Incorrect: Enabling versioning on the S3 bucket indefinitely retains all versions of artifacts, which may lead to unnecessary cost increases if not paired with a lifecycle policy for version expiration.

  • C. Correct.

    Correct: Setting up an S3 Lifecycle policy to permanently delete artifacts older than 90 days helps manage storage costs and ensures compliance with data retention policies, especially when the artifacts are no longer needed.

  • D. Correct.

    Correct: Using Amazon S3 Intelligent-Tiering allows S3 to automatically move artifacts to the most cost-effective storage class based on access patterns, optimizing costs without manual intervention.

  • E. Incorrect.

    Incorrect: Storing all build artifacts in the S3 Standard storage class indefinitely is not cost-effective and may lead to unnecessary expenses since older artifacts may not be frequently accessed.

Timed practice exam

Take a DOP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam