SDLC Automation

An Amazon ECR repository contains obsolete multi-architecture releases whose untagged platform image manifests meet an expiration rule, but those manifests remain referenced by retained image indexes. What should the engineer change so that ECR can expire the obsolete platform images without affecting retained releases?

Show the answer

Correct answerC. Expire the obsolete image indexes before expiring their referenced platform manifests.

AWhy not this: Replication does not remove references between an image index and its platform manifests.

BWhy not this: Meeting a shorter age threshold does not allow deletion while a manifest list still references the image.

CWhy this is right: Removing obsolete indexes first allows their platform manifests to expire once no remaining index references them.

DWhy not this: Tag immutability controls tag replacement; it does not remove image-index references that prevent expiration.

ECR cannot expire an image referenced by a manifest list until the referencing list is deleted. Retiring obsolete image indexes first releases their platform manifests for cleanup. Shortening the age threshold does not remove the reference constraint.