ACE Practice Question: Prevent developers from creating Compute Engine…
This ACE practice question tests your understanding of prevent developers from creating compute engine…. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
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?
Answer choices
Why each option matters
Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.
Best answer
Apply the `compute.vmExternalIpAccess` org policy constraint set to deny all VMs.
This list constraint controls which VMs can have external IPs. An empty or deny-all allowedValues list prevents any VM in the folder from being created with an external IP address.
Distractor review
Configure the default VPC network to use internal-only routes.
Route configuration doesn't prevent external IP assignment at VM creation. VMs can be assigned external IPs regardless of route configuration.
Distractor review
Create a VPC firewall rule blocking all outbound internet traffic.
A firewall rule can block traffic but doesn't prevent VMs from being assigned external IPs — the IP assignment happens at VM creation, before traffic policies apply.
Distractor review
Remove the `compute.instanceAdmin` role from developers so they cannot configure network interfaces.
Revoking compute.instanceAdmin prevents VM creation entirely — too restrictive. The requirement is to allow VM creation but only without external IPs.
Common exam trap
Common exam trap: ACLs stop at the first match
ACLs are processed top to bottom. The first matching entry wins, and an implicit deny usually exists at the end.
Technical deep dive
How to think about this question
ACL questions test precision: source, destination, protocol, port and direction. A generally correct ACL can still fail if it is applied on the wrong interface or in the wrong direction.
KKey Concepts to Remember
- Standard ACLs match source addresses.
- Extended ACLs can match source, destination, protocol and ports.
- The first matching ACL entry is used.
- There is usually an implicit deny at the end.
TExam Day Tips
- Check inbound versus outbound direction.
- Read the ACL from top to bottom.
- Look for a broader permit or deny above the intended line.
Key takeaway
ACLs process entries top to bottom and stop at the first match. Entry order and interface direction matter as much as the permit or deny statement.
Related practice questions
Related ACE practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
More questions from this exam
Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.
Question 1
What is the correct order of the Google Cloud resource hierarchy from highest to lowest level?
Question 2
A compliance archive stores legal documents accessed at most once per quarter. Which Cloud Storage class minimizes storage cost while meeting that access pattern?
Question 3
Which gcloud command creates a Compute Engine VM named 'web-01' using the e2-medium machine type in zone us-central1-a?
Question 4
A team wants to receive an email alert when the average CPU utilization of VMs in a managed instance group exceeds 80% for more than 5 minutes. What should they create in Cloud Monitoring?
Question 5
A junior developer needs read-only access to all GCP resources in a project. Which IAM role grants the minimum permissions required?
Question 6
A startup creates its first Google Cloud project. Before deploying any paid resources, what must be linked to the project?
Practice this exam
Start a free ACE practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this ACE question test?
Standard ACLs match source addresses.
What is the correct answer to this question?
The correct answer is: Apply the `compute.vmExternalIpAccess` org policy constraint set to deny all VMs. — `compute.vmExternalIpAccess` is an organization policy list constraint that controls which VMs are allowed to have external IP addresses. By setting the policy to `allowedValues: []` (empty list, i.e., no VMs allowed external IPs) or by explicitly denying all values, all new VMs in the folder's projects will be created without external IPs. Existing VMs with external IPs are not affected by the policy but new ones will be blocked.
What should I do if I get this ACE question wrong?
Review ACL processing order, placement rules (standard near destination, extended near source), and inbound vs outbound direction. Study wildcard masks and implicit deny. Then practise related ACE ACL questions on filtering logic and placement.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Discussion
Sign in to join the discussion.
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.