ECR Lifecycle Policies

5 minutes 5 Questions

ECR Lifecycle Policies allow users to define and automate the lifecycle of their Amazon ECR images, which helps in managing the image storage and controlling costs efficiently. Users can create policies that specify rules and action parameters, such as the maximum age of an image or the maximum num…

Test mode:
AWS Certified Solutions Architect - ECR Lifecycle Policies Example Questions

Test your knowledge of ECR Lifecycle Policies

Question 1

You have an ECR repository with multiple image versions. You want to create a lifecycle policy that only preserves the 5 most recently pushed images. Which Json field and value would you use?

Question 2

You are creating an AWS ECR lifecycle policy for a Production repository. You must ensure that images tagged 'prod' are never removed by the policy, while allowing cleanup of other images. What should you configure?

Question 3

An Amazon ECR repository tags images as draft, staging, or production. You must retain all production images indefinitely and automatically delete draft and staging images that are older than 7 days. Which lifecycle policy approach satisfies this requirement?

More ECR Lifecycle Policies questions
15 questions (total)