Testing and Deployment
A team uses unique release tags in an Amazon ECR repository. It needs ECR to reject attempts to push a different image using an existing release tag. What should the developer configure?
Show the answer
Correct answerB. Immutable image tags without exclusion filters
AWhy not this: Lifecycle policies control expiration and retention, not tag overwrites.
BWhy this is right: Immutable tags without exclusions cause ECR to reject pushes that overwrite existing tags.
CWhy not this: Download permissions control image retrieval rather than whether existing tags can be overwritten.
DWhy not this: Image scanning identifies vulnerabilities rather than enforcing tag immutability.
ECR tag immutability prevents an existing tag from being overwritten with another image. Lifecycle policies control image expiration, not whether a tag can be reassigned.