exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 182 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 182
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A company is migrating Docker repositories to Amazon Elastic Container Registry (Amazon ECR) in an existing AWS account. A DevOps engineer needs to automate the management of images that are uploaded to the repositories. The solution must limit the number of image versions. As a first step, the DevOps engineer creates a private repository in Amazon ECR for each repository that the company will migrate.

What should the DevOps engineer do next to meet the requirements in the MOST operationally efficient manner?

  • A. Create an AWS Lambda function to scan the images in each repository for the number of versions present. Configure the Lambda function to delete older versions of images if the number of images is greater than the desired number of images. Schedule the Lambda function to run automatically at regular intervals,
  • B. Create a repository policy that assesses the number of images and deletes older versions if the number of images is greater than the desired number of images. Apply the repository policy to each private repository.
  • C. Create an AWS Step Functions state machine Express Workflow to scan the images in each repository for the number of versions present. Configure the Express Workflow to delete older versions of images if the number of images is greater than the desired number of images. Configure the state machine to run every time an image is pushed to a repository.
  • D. Push an image into each private repository. In each private repository, create a lifecycle policy preview to delete older versions of images if the number of images is greater than the desired number of images. Test the lifecycle policy and validate the impact. Apply the lifecycle policy to manage the images.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
n_d1
1 year, 9 months ago
Selected Answer: D
https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html
upvoted 1 times
...
easytoo
2 years, 1 month ago
d-d-d-d-d-d-d-d
upvoted 1 times
...
CloudFloater
2 years, 3 months ago
Selected Answer: D
D ECR lifecycle policies are meant for this
upvoted 2 times
...
andy_sds
2 years, 3 months ago
Selected Answer: D
https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html
upvoted 2 times
...
saeidp
2 years, 3 months ago
Selected Answer: D
D is the correct answere https://docs.aws.amazon.com/AmazonECR/latest/userguide/lifecycle_policy_examples.html
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...