Infrastructure Security

A pipeline pushes container images to Amazon ECR. Policy requires that images with critical vulnerabilities are never deployed, including vulnerabilities published after an image was pushed. Which approach meets this requirement?

Show the answer

Correct answerD. Enable Amazon Inspector continuous scanning for the repository and gate deployment on critical findings.

AWhy not this: A scan made only at push time does not reflect vulnerabilities published later.

BWhy not this: Source-code analysis does not find vulnerable packages inside the container image.

CWhy not this: Tag immutability prevents overwriting tags; it does not detect vulnerabilities.

DWhy this is right: Continuous enhanced scanning updates findings when new vulnerabilities appear, and the gate blocks critical ones.

Amazon Inspector enhanced scanning rescans repository images when new vulnerabilities are published, so a deployment gate that checks current critical findings also catches issues found after the push. A scan made only on push misses later vulnerabilities, and source-code analysis does not cover operating system packages in the image.