Bitzu

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

Single choice

Which predefined role is intended for setting and changing organization policies?

  1. Organization Policy Administrator
  2. Project Creator
  3. Folder Admin
  4. 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.

Select all that apply

Which statements about organization policies are correct?

  1. A policy on a parent applies to its descendants by default
  2. A descendant can inherit the parent's policy or override it
  3. A new policy automatically deletes resources that already violate it
  4. A boolean constraint is either enforced or not enforced
  5. 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

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.

Download on the App StoreGet it on Google Play

More Associate Cloud Engineer topics in this module