Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Associate Cloud Engineer practice bank has an additional 2,014 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
Your company enforces an organization policy at the root organization node that restricts external IP addresses on Compute Engine instances by applying the constraints/compute.vmExternalIpAccess list constraint set to Deny All.
A team in the Development folder needs to assign external IP addresses to test virtual machines (VMs) for an external payment gateway integration. The rest of the organization must continue to block external IP access.
What should you do to meet this requirement?
The Compute Admin (roles/compute.admin) role provides full control over Google Compute Engine resources, such as creating, modifying, and deleting virtual machines, disks, networks, and firewalls.
roles/compute.admin or roles/owner) cannot violate an active Organization Policy constraint. Attempting to attach an external IP address while the constraint is active will return an authorization failure regardless of IAM privileges.compute.instances.create), but does not evaluate resource configuration guardrails.The development team already had a policy override in place allowing external IPs, but was receiving an HTTP 403 Forbidden error due to lacking the underlying IAM permission to create and configure Compute Engine network interfaces.
Organization Policy hierarchy inheritance in Google Cloud allows administrators to set guardrails globally at the organization level while overriding or modifying those rules on specific folders or projects. By default, child resources inherit policies from their parent resource, but an administrator with the Organization Policy Administrator (roles/orgpolicy.policyAdmin) role can explicitly override inheritance at lower levels of the resource hierarchy.
Development folder, you target only the resources within that specific boundary.Development folder from the root organization's Deny All rule for constraints/compute.vmExternalIpAccess.
Development folder automatically receive the override without manual intervention.This approach follows Google Cloud best practices by managing policy exceptions natively through the resource hierarchy rather than modifying IAM roles or dismantling top-level controls.
The Organization Policy Service API (orgpolicy.googleapis.com) is the control-plane API used to manage, view, and modify organization policies across the Google Cloud resource hierarchy.
gcloud org-policies create) from interacting with the service within that project; it does not stop policy enforcement.You wanted to prevent automation scripts running inside a project from querying or listing the organization policy configuration metadata via API endpoints.
This approach removes top-level governance at the organization node and attempts to maintain policy coverage by manually attaching identical organization policy constraints to every non-development folder individually.
The organization policy framework did not support hierarchical inheritance or overrides, making manual per-container policy assignment the only available configuration method.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated