mediumMultiple ChoiceObjective-mapped
Google ACE Practice Question: Needs to ensure that only images from their…
An organization needs to ensure that only images from their approved Container Registry (gcr.io/approved-project) can be deployed on GKE clusters in their organization. Which GCP control enforces this?
⚠ Common exam trap
A common mix-up: candidates confuse network-level controls (firewalls, Cloud Armor) with deployment-time policy enforcement, mistakenly believing that blocking network traffic to unauthorized registries is equivalent to restricting which images can be deployed.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Binary Authorization with a policy requiring attestation from the approved registry
Binary Authorization enforces deployment-time policies that require images to be signed by trusted authorities. By configuring a policy that requires attestations from the approved registry (gcr.io/approved-project), only images from that registry can be deployed on GKE clusters, directly meeting the requirement.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
A VPC firewall rule blocking pulls from unauthorized registries
Why it's wrong here
VPC firewall rules evaluate traffic based on IP addresses, ports, and protocols at the network layer. A registry pull is an HTTPS request to a hostname that resolves to an IP outside your VPC; a firewall rule could block that IP range entirely, but it would also block all internet egress and cannot inspect the HTTP path or image name. It cannot distinguish a pull from an authorized registry versus any other HTTPS endpoint, so it is the wrong tool for enforcing registry-level image provenance.
- ✓
Binary Authorization with a policy requiring attestation from the approved registry
Why this is correct
Binary Authorization is a Google Cloud service that integrates with GKE to enforce deployment-time policy on container images. A policy can require that every image have a valid cryptographic attestation signed by a trusted authority, such as the approved registry, before the image is allowed to run on the cluster. If an image lacks the required attestation or the attestation fails verification, the deployment is denied. This provides automated, enforceable, and auditable control over which images can be deployed, directly addressing the need to block pulls/deployments from unauthorized registries.
- ✗
Cloud Armor rules blocking container pull requests from external sources
Why it's wrong here
Cloud Armor is a web application firewall (WAF) that protects HTTP(S) load balancers from application-layer attacks like SQL injection or cross-site scripting. Container image pulls occur from a container registry via the registry's HTTPS API, not through your load balancer, so Cloud Armor never sees that traffic. Even if it did, Cloud Armor rules match on request attributes such as IP, headers, or URL paths, not on cryptographic attestations or the identity of the container image publisher; it cannot enforce a policy that only an approved registry's images may be deployed.
- ✗
Manually reviewing all Docker images before deployment
Why it's wrong here
Manual review of Docker images is a human-driven, point-in-time process that quickly becomes impractical at scale, especially in CI/CD pipelines with frequent deployments. It cannot enforce a consistent, programmatic policy across teams or clusters, and a reviewer can miss subtle signs of tampering or provenance issues. This approach is also not integrated into the deployment pipeline, so it does not provide automatic enforcement or an audit trail, unlike Binary Authorization which rejects non-compliant images at deploy time in a repeatable way.
Go deeper
Related to this question
Learn chapter
Deployment Manager and Terraform on GCP
Key term
Container registry
A container registry is a centralized storage and distribution system for container images, enabling developers to push, pull, and manage versions of application snapshots across environments.
Key term
Container
A container is a lightweight, standalone software package that includes everything needed to run an application, such as code, runtime, system tools, and libraries.
About these practice questions
One of 769 original ACE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.