An enterprise administrator is configuring governance policies across a Google Cloud resource hierarchy comprising an Organization node, a Development folder, and several child projects. The security policy mandates two constraints:
1. Disable serial port access for Compute Engine virtual machines globally across all projects.
2. Restrict external IP addresses on Compute Engine instances across the organization, except for a specific project named 'dev-bastion-proj' located in the Development folder which requires external network connectivity.
Which two organization policy configurations must the administrator implement to satisfy these requirements? (Select TWO.)
- Enforce the boolean constraint constraints/compute.disableSerialPortAccess at the Organization root node.Answer
- Configure the list constraint constraints/compute.vmExternalIpAccess to Deny All at the Organization root node, and define an override policy on the dev-bastion-proj project node to allow external IP allocation.Answer
- CGrant the primitive Owner role to developers on dev-bastion-proj to bypass the organization policy restrictions on external IP addresses.
- DEnforce constraints/compute.disableSerialPortAccess at the Development folder level only, as child project policies automatically override parent organization restrictions.
Answer
Enforce constraints/compute.disableSerialPortAccess at the Organization root node, and set constraints/compute.vmExternalIpAccess to Deny All at the Organization root with a project-level override on dev-bastion-proj.
Organization policies enforce guardrails across the GCP resource hierarchy. Enforcing constraints/compute.disableSerialPortAccess at the Organization root guarantees global compliance across all child projects. For constraints/compute.vmExternalIpAccess, setting Deny All at the Organization root establishes an enterprise baseline, while configuring an explicit policy override at the dev-bastion-proj project node creates a controlled exception for external networking requirements.
Step-by-Step Solution
Key Concept
Organization Policy Constraints and Resource Hierarchy Inheritance