A financial firm enforces an Organization Policy at the root Organization node using the list constraint `constraints/sql.restrictPublicIp` to prevent Cloud SQL instances from being created with public IP addresses. A database team requires public IP access temporarily for instances created inside a specific folder named `Partner-Staging`. How should the administrator configure the governance controls on the `Partner-Staging` folder to allow public IP allocation for SQL instances inside that folder without affecting the rest of the organization?
- Set an Organization Policy enforcement override at the `Partner-Staging` folder level for `constraints/sql.restrictPublicIp` to allow public IP configuration.Answer
- BGrant the Cloud SQL Admin role (`roles/cloudsql.admin`) to the database team at the `Partner-Staging` folder level to bypass the root policy.
- CRemove the Organization Policy Administrator role from the `Partner-Staging` folder to stop resource hierarchy policy inheritance.
- DAssign the primitive Owner role (`roles/owner`) to the database team on the `Partner-Staging` folder so they can bypass organization restrictions.
Answer
Set an Organization Policy enforcement override at the `Partner-Staging` folder level for `constraints/sql.restrictPublicIp` to allow public IP configuration.
Organization Policies evaluate resource state restrictions hierarchically. To grant an exception for resources contained within a specific folder, an Organization Policy rule must be applied directly at that folder node to override or reset the inherited constraint from the root organization.
Step-by-Step Solution
Key Concept
Organization Policy Hierarchy and Inheritance