How to Block Vulnerable Containers in Cloud Run Production?
Your organization relies heavily on Cloud Run for its containerized applications. You utilize Cloud Build for image creation, Artifact Registry for image storage, and Cloud Run for deployment. You must ensure that containers with vulnerabilities rated above a common vulnerability scoring system (CVSS) score of "medium" are not deployed to production. What should you do?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Tests understanding of automated deployment security gates, with the common trap being confusing IAM permissions or manual review processes with actual policy enforcement mechanisms.
Enforcing deployment security gates in Google Cloud requires automated policy enforcement rather than manual checks. This page establishes why Binary Authorization is the correct service to block high-CVSS containers before they reach production.
Candidates often select option D because it mentions blocking images, but misinterprets Artifact Registry permissions as a vulnerability-scanning enforcement tool rather than an access-control mechanism.
Community Discussion (3 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Binary Authorization acts as a mandatory admission controller for Cloud Run deployments, enforcing policies based on signed images and container analysis results. By integrating it with Artifact Registry's built-in vulnerability scanning, you can configure strict thresholds that automatically reject any image exceeding a CVSS medium score during the push or deploy phase. This creates a non-bypassable security gate that aligns with zero-trust CI/CD practices.Why the Other Options Are Wrong
Option A and Option B both rely on manual remediation steps, which introduce human error, slow down release cycles, and fail to provide real-time prevention at the deployment boundary. Option D incorrectly suggests using Artifact Registry IAM permissions to block images based on vulnerability scores; permissions only control who can read or write artifacts, not how scan results are evaluated or enforced during runtime deployment.Community Comment Notes
Community feedback strongly converges on Binary Authorization as the definitive solution. As Mr_MIXER007 noted, the approach provides a strong policy-based control mechanism that ensures only verified images enter production. JohnDohertyDoe reinforced this by sharing the official Google Cloud documentation link for enabling the feature on Cloud Run, while yokoyan simply confirmed the selection matches exam expectations. The consensus correctly highlights automation over manual workflows.Official Reference
Exam Strategy
When a PCSE question demands automatic prevention of insecure artifacts at deployment time, look for policy engines like Binary Authorization or OPA/Gatekeeper rather than permission settings or manual reviews. Map keywords like 'enforce', 'gate', and 'block' directly to admission controllers that evaluate scan metadata before allowing infrastructure changes.
Frequently Asked Questions
Why isn't Artifact Registry permission blocking effective here?
Permissions control user access, not image vulnerability states. Binary Authorization evaluates scan results against policies before deployment.
Does Binary Authorization replace container vulnerability scanning?
No, it acts as a deployment gate that consumes scan data from Container Analysis. Scanning still occurs in Cloud Build or Artifact Registry.