Operational Excellence and Automation

A pipeline pushes an image to an Amazon ECR repository with scan-on-push enabled, then immediately deploys when a findings query returns no critical vulnerabilities. Some deployments occur before scanning finishes. Which change closes this gap?

Show the answer

Correct answerA. Wait for scan completion for the image digest, then evaluate findings

AWhy this is right: Checking completion and findings for the exact digest ties the release decision to a fully assessed image.

BWhy not this: Signing establishes artifact authenticity and integrity, not scan completion or vulnerability acceptability.

CWhy not this: Approval alone does not establish that the scan completed or that its findings meet the release policy.

DWhy not this: A fixed delay can expire before completion, and the tag can move to another image.

The gate must distinguish a completed scan with acceptable findings from a scan that has not finished, using the exact image digest. A fixed delay does not establish completion, and a mutable tag may identify a different image.