CI/CD pushes an image to ECR every day.
Keep images with production tags and delete old unused images.
Which feature is most appropriate?
Use an ECR lifecycle policy with tag and image-count rules to expire old images.
Detailed explanation
CDN cache operations do not delete images in a container registry.
CDN cache operations do not delete images in a container registry.
DNS records are unrelated to ECR image storage.
DNS records are unrelated to ECR image storage.
The policy expires images that match tag or age conditions while retaining the required generations.
The policy expires images that match tag or age conditions while retaining the required generations.
S3 lifecycle management does not manage ECR images.
S3 lifecycle management does not manage ECR images.
Check official documentation
Compare the following points with the official documentation.
Amazon ECR lifecycle policiesの公式説明を確認する。
What to confirm
S3 LifecycleとECRライフサイクルポリシーを区別できる。
Key points
- ECR lifecycle policy
- Tag
- Retention count
Notes
- Environment: AWS公式SOA-C03試験ガイドとAWS公式ドキュメントの確認
- Confirm current AWS service behavior in the official documentation.
Foundation review
Registry-specific lifecycle
ECR policies manage images directly; S3 lifecycle rules apply to S3 objects.
Safe retention
Tag and count conditions can retain production images while removing unused history.