GoogleGoogle Professional Cloud Developer (PCD) Certification·EN·Updated 3 Sep 2026
Prevent deploying container images with known critical vulnerabilities using CI/CD. Which approach should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable the Container Scanning API to perform vulnerability scanning; programmatically review vulnerability reporting through the Container Scanning API; provide an attestation that the container is free of known critical vulnerabilities; use Binary Authorization to require the attestation before deployment..
Why this is the answer
The correct approach involves using the Container Scanning API for vulnerability detection and integrating it into a CI/CD pipeline. The Container Scanning API (part of Artifact Analysis) automatically scans container images for known vulnerabilities. Programmatically reviewing these results allows for automated decision-making within the CI/CD pipeline. If the image passes vulnerability checks, an attestation is created. Binary Authorization then enforces that only images with this attestation can be deployed, preventing vulnerable images from reaching production.
The incorrect options involving Web Security Scanner are wrong because Web Security Scanner is designed for scanning web applications for vulnerabilities like XSS or SQL injection, not for scanning container images for OS package vulnerabilities. While it can identify issues in a running application, it doesn't scan the underlying container image itself. Reviewing logs or the Cloud Console for scan results is less efficient for automated CI/CD than programmatic API interaction.