nerdexam
Amazon

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.

Submitted by cyberguy42· Mar 6, 2026SDLC Automation

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)
  • A
    3% (2)
  • B
    88% (53)
  • C
    2% (1)
  • D
    7% (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

#Amazon ECR#Docker Images#Image Lifecycle#Cost Optimization

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice