How to Enforce Verified Container Deployment Policies
Short answer
D Enable Binary Authorization to enforce deployment policies that require valid vulnerability scan attestations before allowing containers to run.
Question
Key Takeaways
Tests understanding of deployment-time policy enforcement versus simple pipeline scanning, where candidates often confuse CLI verification commands with runtime admission control.
Binary Authorization enforces deployment policies by requiring verified container attestations. This page establishes why admission control is required to block unscanned images in GKE.
Common mistake: Option B is frequently chosen because it performs vulnerability scanning, but it lacks the admission controller capability to actually block unauthorized containers from running in the cluster.
Expert Analysis
Why the Answer Is Correct
Binary Authorization acts as an admission controller for GKE clusters, evaluating whether incoming container images meet organizational policies before deployment. By integrating your CI/CD pipeline to generate attestations upon successful vulnerability scans, you create a cryptographic proof of compliance. The platform then strictly blocks any workload lacking these valid attestations, directly satisfying the requirement to ensure only verified containers run.
Why the Other Options Are Wrong
Option A focuses on identity and access management for cluster administrators rather than image provenance. Option B demonstrates how to query artifact registry for vulnerabilities, which is useful for reporting but cannot enforce runtime deployment restrictions. Option C provides developer-side IDE feedback during coding, which occurs too early in the lifecycle and bypasses centralized pipeline enforcement.
Community Comment Notes
Multiple learners validated the selection, noting that official documentation directly links attestations to automated pipeline verification. As BondleB observed, the service architecture specifically bridges scanning results with cluster admission gates. Consensus confirms that generating attestations is the definitive mechanism for meeting exam objectives around trusted supply chains.
Official Reference
- https://cloud.google.com/binary-authorization/docs/attestations
- https://cloud.google.com/binary-authorization/docs/making-attestations
These links open the official vendor documentation in a new tab.
Exam Strategy
Focus on distinguishing between scanning tools and admission controllers. When a question emphasizes ensuring only verified workloads can run, prioritize policy enforcement services like Binary Authorization over standalone scanning or IAM configurations.
Frequently Asked Questions
Why isn't gcloud artifacts describe enough for this scenario?
How do attestations integrate with CI/CD pipelines?
Community Votes
100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 3
-
jmaquino 👍 2D: https://cloud.google.com/binary-authorization/docs/making-attestations?hl=es-419
-
BondleB 👍 2https://cloud.google.com/binary-authorization/docs/attestations D
-
abdelrahman89 👍 2 Answered DAnswer D
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.