DOP-C02 · Question #339
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
The correct answer is A. Create a repository in Amazon Elastic Container Registry (Amazon ECR). Add a lifecycle policy to. Amazon ECR is the most appropriate service for storing container images. It is specifically designed for managing and storing Docker container images and offers native lifecycle management features. ECR supports lifecycle policies that allow you to automatically manage image life
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
How the community answered
(56 responses)- A86% (48)
- B4% (2)
- C2% (1)
- D9% (5)
Explanation
Amazon ECR is the most appropriate service for storing container images. It is specifically designed for managing and storing Docker container images and offers native lifecycle management features. ECR supports lifecycle policies that allow you to automatically manage image lifecycles by expiring or deleting images based on criteria such as tags, age, or the number of untagged images. This provides an efficient, automated way to delete container images with a specific tag that are older than 15 days, meeting the requirements without manual intervention. By using Amazon ECR and its lifecycle policies, you can easily meet the requirement for automatically deleting container images with a specific tag that are older than 15 days with minimal operational effort.
Topics
Community Discussion
No community discussion yet for this question.