SDLC Automation

A team tags container images in a private Amazon ECR repository with release numbers. The repository must reject pushes that would replace an existing release tag. What should the team configure?

Show the answer

Correct answerD. ECR image tag immutability

AWhy not this: Lifecycle policies expire images according to retention rules; they do not prevent tag overwrites.

BWhy not this: Enhanced scanning identifies image vulnerabilities; it does not control tag replacement.

CWhy not this: Docker layer caching accelerates builds; it does not enforce repository tag rules.

DWhy this is right: An immutable repository rejects attempts to overwrite existing tags unless an applicable exclusion permits it.

Image tag immutability prevents a subsequent push from overwriting an existing tag. A lifecycle policy controls image expiration, not whether a tag can be replaced.