Associate Cloud Engineer ยท Resource hierarchy, projects and identities
Organization Policy Service
Organization Policy Service constraints (boolean and list), inheritance and override along the hierarchy, common constraints such as restricting resource locations or external IPs, and who needs the Organization Policy Administrator role.
Key points
- A policy applies a constraint to an organization, folder or project; descendants inherit or override it.
- Boolean constraints: enforced or not (constraints/compute.disableSerialPortAccess).
- List constraints: allow or deny values (constraints/gcp.resourceLocations, constraints/compute.vmExternalIpAccess).
- New policies are not retroactive.
- Role: Organization Policy Administrator (roles/orgpolicy.policyAdmin).
Source: https://docs.cloud.google.com/resource-manager/docs/organization-policy/overview
Practice questions
Which predefined role is intended for setting and changing organization policies?
- Organization Policy Administrator
- Project Creator
- Folder Admin
- Security Reviewer
Show answer
Answer: A. Organization Policy Administrator
Organization Policy Administrator (roles/orgpolicy.policyAdmin) is the role built for managing org policies. Project Creator and Folder Admin manage other things, and Security Reviewer is read-only.
Which statements about organization policies are correct?
- A policy on a parent applies to its descendants by default
- A descendant can inherit the parent's policy or override it
- A new policy automatically deletes resources that already violate it
- A boolean constraint is either enforced or not enforced
- List constraints can only be set on individual projects
Show answer
Answer: A. A policy on a parent applies to its descendants by default, B. A descendant can inherit the parent's policy or override it, D. A boolean constraint is either enforced or not enforced
Policies inherit downward and can be overridden by descendants; boolean constraints are on/off. They are not retroactive and are not limited to project level.
True or false: when you apply a new organization policy, existing resources that violate it are removed automatically.
Show answer
Answer: False
False. New policies are generally not retroactive; existing non-compliant resources remain and have to be fixed by you.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
