Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Amazon Web Services AWS Certified DevOps Engineer - Professional DOP-C02 Question # 16 Topic 2 Discussion

Amazon Web Services AWS Certified DevOps Engineer - Professional DOP-C02 Question # 16 Topic 2 Discussion

DOP-C02 Exam Topic 2 Question 16 Discussion:
Question #: 16
Topic #: 2

A company frequently creates Docker images of an application. The company stores the images in Amazon Elastic Container Registry (Amazon ECR) . The company creates both tagged images and untagged images.

The company wants to implement a solution to automatically delete images that have not been updated for a long time and are not frequently used. The solution must retain at least a specified number of images.

Which solution will meet these requirements with the LEAST operational overhead ?


A.

Use Amazon S3 Lifecycle policies on the ECR repository to automatically delete images based on image age or the absence of tags on the image.


B.

Use Amazon ECR lifecycle policies to delete images based on age or the number of images that need to be retained in the repository.


C.

Configure an AWS Lambda function to run on a schedule to delete images based on age or the number of images that need to be retained in the repository.


D.

Use AWS Systems Manager to run a script by using the aws:executeScript action to automatically delete images based on image age or the absence of tags on the image.


Get Premium DOP-C02 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.