Amazon Web Services AWS Certified DevOps Engineer - Professional DOP-C02 Question # 18 Topic 2 Discussion
DOP-C02 Exam Topic 2 Question 18 Discussion:
Question #: 18
Topic #: 2
A company frequently creates Docker images stored in Amazon ECR, with both tagged and untagged versions. The company wants to delete stale or unused images while keeping a minimum count.
Which solution meets this requirement?
A.
Use S3 lifecycle policies (not applicable).
B.
Use ECR Lifecycle Policies based on image age or count.
ECR Lifecycle Policies automatically manage image retention based on tag status, age, or count. They execute natively within the ECR service, requiring no external management or scripts — the least overhead and AWS-recommended cleanup method.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit