Restricting External IPs via Root Organization Policy
Short answer
A Define an organization policy at the root organization node to restrict virtual machine instances from having an external IP address.
Question
Engine. It is expected that different teams will create new folders and projects in the near future.
How would you restrict all virtual machines from having an external IP address?
Key Takeaways
The question tests the understanding of Google Cloud's resource hierarchy and the scalability of Organization Policies; applying policies at the root level ensures they automatically apply to all future resources.
To prevent VMs from having external IPs across all current and future projects and folders, define an Organization Policy at the root organization node. This ensures centralized enforcement of the compute.noExternalIP constraint.
Common mistake: Choosing Option B or C is common but wrong because they only apply to existing folders or projects, failing to protect new resources created by other teams as specified in the scenario.
Expert Analysis
The scenario requires restricting all virtual machines (VMs) from having an external IP address across the entire organization, including resources in Compute Engine. The key constraint is that "different teams will create new folders and projects in the near future," meaning any policy applied only to existing resources or lower levels would fail to cover future additions.
Option A is correct because Organization Policies allow administrators to define constraints at the root organization node. These policies propagate down the resource hierarchy (Organization > Folder > Project > Resource). By setting the constraint compute.noExternalIP at the root level, it automatically applies to all current and future folders, projects, and VM instances within the organization. This provides centralized control and ensures compliance without manual intervention for each new project.
Option B is incorrect because applying policies only to existing folders ignores future folders created by new teams. Additionally, managing policies on every folder individually is inefficient and prone to drift compared to a single root-level policy.
Option C is incorrect for similar reasons: it targets only existing projects and does not scale to future projects. It also violates the principle of least privilege by requiring per-project management instead of centralized governance.
Option D is incorrect because relying on manual configuration by different teams is error-prone and unenforceable. Automation and policy-as-code are required for consistent security posture in dynamic environments.
Official Reference
- https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy
- https://cloud.google.com/org-policies/docs/org-policies-reference#supported_constraints
These links open the official vendor documentation in a new tab.
Exam Strategy
When a question mentions 'future' resources or 'all teams,' look for solutions that operate at the highest level of the resource hierarchy (Organization). Manual processes (like Option D) are rarely correct in cloud governance questions where automation and centralization are key. Always verify if a policy propagates downwards when placed at the root.
Frequently Asked Questions
Why is Option D not a valid solution?
Does an Organization Policy at the root affect existing projects?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 24 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 24
-
Swollenbadger 👍 4 Answered AI chose A because this type of rule would likely only make sense at the organization level (org > folder > project > resource).
-
mb0812 👍 4Should be A
-
cookieMr 👍 3 Answered ATo ensure consistency and compliance across your organization, enforce Organization Policies that restrict VMs from having external IP addresses. Organization Policies provide centralized control and can prevent users from creating VM instances with external IP addresses across different projects and folders within your organization.
-
Monicaarg 👍 3 Answered ABecause is expected that different teams will create new folders and projects in the near future. Then the restriction must be ver folders.
-
ucsdmiami2020 👍 3 Answered ARefer to Google Docs explanation of Resource hierarchy, https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy
Show 19 more comments
-
Shashank_R 👍 3A is the Answer ; root organization node is the key here to restrict virtual machine instances from having an external IP address.
-
Pou1ze 👍 3 Answered Athe sentence that say "in the future other team create new project...." address the answer at the top level of hierarchy
-
erwin_t82 👍 2 Answered AThe Organization Policy Service gives you centralized and programmatic control over your organization's cloud resources. As the organization policy administrator, you will be able to configure constraints across your entire resource hierarchy.
-
akshay_jadhav 👍 2 Answered AIt has to A because giving Organisation level policy is the optimum choice
-
grzeev 👍 2A. projects and resources inherits from root!
-
jres 👍 2A very true. this solve the problem
-
Surek 👍 2Answer is A
-
star2anand 👍 1A. Define an organization policy at the root organization node to restrict virtual machine instances from having an external IP address
-
Waffle0906 👍 1 Answered AOrganization level control for existing & future folders
-
gireeshbengeri 👍 1 Answered AVideo rendering can fetch by Premptible with low cost
-
NU_1234 👍 1 Answered AAddressing at root level through policy
-
tsk9921 👍 1A Root level will address the issue
-
lzuccolo 👍 1 Answered AConfigurar a nivel raiz las ips
-
Sp4nner 👍 1 Answered ARoot is above all
-
SrR97 👍 1 Answered AA es correcto
-
__rajan__ 👍 1 Answered AA is correct.
-
chai_gpt 👍 1 Answered AA is correct
-
mdsarfraz69 👍 1 Answered AAnswer is A.
-
haroldbenites 👍 1Go for A
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All CDL Questions
Access 84 questions with complete answers and detailed explanations.
View Full CDL Practice Test →