mediumMultiple ChoiceObjective-mapped
Google ACE Practice Question: Prevent developers from creating Compute Engine…
You need to prevent developers from creating Compute Engine VMs with external IP addresses in a specific folder. Developers must still be able to create VMs with internal IPs only. Which org policy constraint enforces this?
⚠ Common exam trap
Watch out — candidates often confuse network-layer controls (firewall rules) with resource-level policies (org policy constraints), leading them to choose a firewall rule instead of the correct org policy constraint that directly governs VM creation.
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
✓
Apply the `compute.vmExternalIpAccess` org policy constraint set to deny all VMs.
The `compute.vmExternalIpAccess` organization policy constraint is specifically designed to control whether Compute Engine VMs can be assigned external IP addresses. By setting this constraint to deny all VMs in the folder, developers are prevented from creating VMs with external IPs while still being able to create VMs with only internal IPs. This is the correct, native Google Cloud mechanism for enforcing this requirement at the folder level.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create a VPC firewall rule blocking all outbound internet traffic.
Why it's wrong here
A VPC firewall rule that blocks all outbound internet traffic operates at layer 3/4 to filter packets exiting an instance, but it does not prevent the assignment of an external IP at VM creation. The IP is allocated and attached to the network interface during the `instances.insert` operation, before any firewall rules are evaluated. Even with complete egress blocking, the VM would still have an external IP address, which is precisely the condition the organization wants to avoid.
- ✓
Apply the `compute.vmExternalIpAccess` org policy constraint set to deny all VMs.
Why this is correct
The `compute.vmExternalIpAccess` organization policy constraint is a list constraint that specifically governs whether Compute Engine VMs can be provisioned with external IP addresses. When you set the `allowedValues` list to empty (`[]`), the constraint denies external IP assignment for all VMs under the folder, enforced at VM creation time by the Compute Engine API. This directly meets the requirement to allow VM creation while prohibiting public IP addresses, unlike network-level controls that only affect traffic.
- ✗
Remove the `compute.instanceAdmin` role from developers so they cannot configure network interfaces.
Why it's wrong here
Revoking `compute.instanceAdmin` from developers would remove the ability to create VMs and manage network interfaces, but it also blocks VM creation altogether because that role is a prerequisite for many creation workflows. This is overly restrictive: the requirement is to permit developers to create VMs, just without external IPs. Additionally, developers might retain other roles like `compute.instanceAdmin.v1` or `compute.instances.create` that still allow VM creation, so the change is both excessive and unreliable as a control.
- ✗
Configure the default VPC network to use internal-only routes.
Why it's wrong here
Configuring the default VPC to use internal-only routes alters how packets are forwarded—for example, by removing the default route via the internet gateway—but it has no effect on IP address assignment. A VM can be created with an external IP even if its routing table has only internal routes; routes are evaluated only when sending traffic, not when the instance is provisioned. The external IP remains attached to the instance, so this does not satisfy the policy requirement.
Go deeper
Related to this question
Learn chapter
Google Cloud Platform Overview
Key term
Folder
A folder is a logical container used to organize and group digital files, resources, or cloud-based assets within a system or platform.
Key term
Google Cloud
Google Cloud is a suite of cloud computing services offered by Google that provides infrastructure, platform, and software solutions over the internet.
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.