AmazonAmazon
DOP-C02 · Question #339
DOP-C02 Question #339: Real Exam Question with Answer & Explanation
Sign in or unlock DOP-C02 to reveal the answer and full explanation for question #339. The question stem and answer options stay visible for context.
Submitted by mateo_ar· Mar 6, 2026Configuration Management & Infrastructure as Code
Question
A DevOps administrator is configuring a repository to store a company's container images. The administrator needs to configure a lifecycle rule that automatically deletes container images that have a specific tag and that are older than 15 days. Which solution will meet these requirements with the MOST operational efficiency?
Options
- ACreate a repository in Amazon Elastic Container Registry (Amazon ECR). Add a lifecycle policy to
- BCreate a repository in AWS CodeArtifact. Add a repository policy to the CodeArtifact repository to
- CCreate a bucket in Amazon S3. Add a bucket lifecycle policy to expire old objects that have the
- DCreate an EC2 Image Builder container recipe. Add a build component to expire the container
Unlock DOP-C02 to see the answer
You've previewed enough free DOP-C02 questions. Unlock DOP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#ECR Lifecycle Policies#Container Image Management#Cost Optimization