A pipeline pushes an ML image to Amazon ECR with enhanced scanning enabled, then immediately deploys when no critical findings are returned. Which change BEST prevents unscanned images from passing?
Show the answer
Correct answerC. Wait for the image digest's initial scan to complete, then evaluate findings.
AWhy not this: Scan duration varies, so a fixed delay can still allow evaluation before findings are available.
BWhy not this: A successful push confirms storage of the image, not completion or success of vulnerability scanning.
CWhy this is right: Waiting for completion and checking the exact digest ties the vulnerability decision to the image being deployed.
DWhy not this: A mutable tag can identify a different image, and checking its findings does not establish scan completion.
An empty findings response does not establish that scanning has completed. Gate deployment on completion of the initial scan for the exact image digest, then apply the vulnerability threshold; a fixed delay cannot establish completion.