DOP-C02 · Question #474
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…
The correct answer is 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.
Question
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?
Options
- AUse S3 lifecycle policies (not applicable).
- BUse ECR Lifecycle Policies based on image age or count.
- CSchedule Lambda to delete by age.
- DUse Systems Manager automation scripts.
How the community answered
(60 responses)- A3% (2)
- B88% (53)
- C2% (1)
- D7% (4)
Explanation
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.
Topics
Community Discussion
No community discussion yet for this question.