Exam objective 2.2 for the Google Professional Cloud Security Engineer certification focuses on how to organise cloud resources and enforce security rules across them. Without a clear hierarchy and organisation policies, a company's cloud environment becomes chaotic—different teams might create conflicting security settings, and auditors would have no way to trace who can access what. This chapter explains the tree-like structure that Google Cloud uses (organisation, folders, projects) and the centralised rules, called organisation policies, that make sure security is consistent no matter who is working on what.
Jump to a section
A simple way to picture Organization Policies and Resource Hierarchies
A Senior City Planner (the cloud administrator) is responsible for the entire city (the Google Cloud organisation). The city is divided into boroughs (folders), each with distinct character: a residential zone (development projects), a commercial district (production systems), and a restricted government area (compliance-critical workloads). Each borough contains individual buildings (projects), which are the smallest units where actual work happens.
The Planner sets city-wide regulations (organisation policies) that apply everywhere: no building taller than 10 storeys, all waste must be recycled, and every building must have a fire escape. But within a borough, an Assistant Planner can add local rules (folder-level policies) that are stricter, but never more lenient: the residential borough might require all buildings to have solar panels, even though the city-wide code doesn't.
Now imagine a developer wants to build a coffee shop in a specific building (a project). They cannot bypass the city-wide height restriction or the solar panel rule. The hierarchy ensures that rules cascade down—a policy set at the city level is inherited by every borough, every building, and every coffee shop inside it. If the Planner moves a building from the residential borough to the commercial district, that building automatically adopts the commercial district's set of local rules. The Planner never micromanages coffee shops; they set the structure and rules, then let the teams work inside those boundaries.
When you start using Google Cloud, you need a way to organise everything your company builds and runs there. Imagine you run a large retailer with teams for website, inventory, customer service, and data analytics. Each team creates virtual spaces called projects to do their work. A project in Google Cloud is a container that holds all the resources for a specific effort—things like virtual machines (virtual computers), databases, and storage buckets. Without a parent structure, every project lives on its own, and you have to set security rules separately for each one. That is time-consuming and error-prone.
Google Cloud solves this with a resource hierarchy. Think of it as a family tree or an organisational chart. At the very top is one node: the organisation node. This node represents your entire company. It is created automatically when you sign up with a Google Workspace or Cloud Identity account. Every project you create sits somewhere beneath this node.
Between the organisation node and your projects, you can create folders. Folders group projects together. Continuing the retailer example: you might have a folder called "Customer-Facing" that contains the website project and the customer-service project. You might have another folder called "Internal" that contains the inventory project and the analytics project. Folders can be nested inside other folders, so you can create a hierarchy that mirrors your company's departments, teams, or environments (development, testing, production).
Now, why does hierarchy matter for security? Because you can attach rules called organisation policies to any node in the hierarchy. An organisation policy is a set of constraints that define what is allowed or forbidden for all resources underneath that node. For example, you might create a policy that says "No one can create virtual machines outside of our approved regions." If you attach that policy to the organisation node, it applies to every project in your company. If you attach it to a specific folder, it applies only to the projects inside that folder.
This is called inheritance. Policies flow downward from parent to child. A child node (like a project) automatically gets all the policies from its parent folder, and all the policies from the folder's parent, all the way up to the organisation node. You cannot opt out of a policy set at a higher level—a developer in a project cannot override a rule set at the organisation or folder level. You can, however, make the rule stricter at a lower level. For example, if an organisation policy restricts regions to the United States, a folder could add a restriction that only a specific US state is allowed. The folder's policy is more restrictive but consistent with the parent policy.
Organisation policies are managed in the Google Cloud Console or via command-line tools. They are not firewall rules or access permissions (that is Identity and Access Management, or IAM). Instead, they are guardrails that prevent actions. For common policy types, Google provides a list of predefined constraints: for instance, "constraints/compute.requireOsLogin" forces all virtual machine access to use SSH keys rather than passwords. You can also create custom constraints using a simple language called Common Expression Language (CEL) to match your specific business rules.
The resource hierarchy also determines how IAM roles are inherited. If you grant a user a role (like Project Creator) at the organisation level, that user can create projects anywhere in the hierarchy. If you grant a role at the folder level, that user can only manage projects within that folder. This is separate from organisation policies but works alongside them.
Why was this system created? Before cloud platforms, companies owned physical servers in data centres. You enforced rules by locking doors and configuring each machine by hand. In the cloud, resources are created and destroyed on demand, and different teams may be scattered across the globe. A hierarchical policy system means you can set a baseline rule once, trust that it applies everywhere, and then empower teams to work within those boundaries without security risks.
Link your domain to create the organisation node
Sign up for a Google Workspace or Cloud Identity account. When you verify your domain ownership, Google Cloud creates an organisation node automatically. This node becomes the root of your entire resource hierarchy. Without this step, projects live under a 'no organisation' umbrella, which limits policy enforcement.
Plan and create your folder structure
Design folders that match your company's business units, teams, or environments (like Dev, Test, Prod). Folders can be nested up to 10 levels deep, but 3-5 levels is best practice. Each folder groups related projects. Naming conventions should be clear, e.g., 'Engineering/Dev/WebApp'. This structure determines how organisation policies will be inherited.
Create projects inside the appropriate folders
Each project is a container for resources like virtual machines, databases, and APIs. Create projects under the correct folder in the hierarchy. If you create a project directly under the organisation node without a folder, you lose the ability to apply folder-level policies. Use the constraint 'requireFolders' to enforce this.
Define and apply organisation policies at the needed level
In the Google Cloud Console, navigate to the Organisation Policies page. Choose a predefined constraint (like 'Resource Location Restriction') or create a custom one. Select whether to apply it at the organisation, folder, or project level. For example, apply a region restriction at the organisation level to cover all projects, then apply an additional stricter policy at a specific folder for sensitive data.
Test policies using the simulator and audit logs
Before enforcing a new policy, use the policy simulator to see which resources would be affected. After applying, check Cloud Audit Logs to confirm the policy is working. If you need to fix existing resources that violate a new policy, you must remediate manually or use scripts—organisation policies do not automatically change existing resources.
Meet Sarah, a cloud security engineer at FinServ Ltd, a mid-sized financial services company. FinServ has three main lines of business: retail banking, wealth management, and insurance. Each line of business has its own development, testing, and production environments. Sarah's job is to enforce regulatory compliance (like GDPR and PCI DSS) without slowing down the developers.
Sarah starts by setting up the resource hierarchy. She organises the top-level organisation node, which is created when FinServ links its existing Google Workspace domain. Underneath, she creates three folders: "Retail-Banking", "Wealth-Management", and "Insurance". Inside each folder, she creates subfolders for "Dev", "Test", and "Prod". At the bottom of each subfolder, she creates the actual projects. For example, under "Retail-Banking\/Test", there is a project called "mobile-app-testing".
Now Sarah needs to enforce a policy: all production data must stay inside the European Union. She navigates to the Organisation Policies page in the Cloud Console. She finds the predefined constraint called "Resource Location Restriction" and applies it to the organisation node with a value of "europe-west1" and "europe-west4" (data centres in Belgium and the Netherlands). This means no project in the entire company can create resources outside those two regions. The policy is inherited by every folder and project.
Next, her compliance team requires that all virtual machine disks be encrypted using a company-managed key. Sarah creates a custom organisation policy using CEL that checks whether the disk creation request includes the correct customer-managed encryption key. She attaches this policy to the "Prod" subfolder inside each of the three business folders. The dev and test subfolders are not affected, so developers there can use Google-managed encryption for speed, while production must use the company's own keys.
Last week, a developer in the wealth management division created a new project directly under the organisation node, bypassing the folder structure. Sarah noticed because the audit logs showed a project creation event without a parent folder. She could have prevented this by using an organisation policy: there is a prebuilt constraint called "constraints/resourcemanager.requireFolders" that forces all projects to be created inside a folder. She enabled that policy, so now any attempt to create a standalone project is blocked with an error message.
Throughout her day, Sarah uses policy simulations to test what would happen before applying a new policy. She also uses the Policy Analyzer tool to find which resources are affected by a specific constraint. When auditors ask, "How do you ensure no resource is created outside the EU?" she points to the organisation policy applied at the root, the audit logs showing every policy change, and the simulator results. The hierarchy and policies make her job about designing the structure once, rather than fighting fires in every project.
The PCSE exam tests your understanding of the resource hierarchy and organisation policies in several specific ways. You will see questions that ask you to identify which level of the hierarchy to apply a policy, how inheritance works, and the difference between organisation policies and IAM policies.
Key concepts the exam loves:
The order of the hierarchy: Organisation node is highest, then folders (which can be nested), then projects, then resources (like VMs, storage buckets). Remember: you cannot skip levels. A project must be inside the organisation (directly or via a folder path).
Inheritance direction: policies and IAM roles flow top-down. A policy set at the organisation node applies to all descendants. A policy set at a folder applies only to that folder and its projects. A policy set at a project applies only to that project. No bottom-up inheritance.
Policy conflict resolution: if a parent policy allows an action but a child policy denies it, the deny wins. The most restrictive policy applies. Google Cloud calls this "deny takes precedence."
Organisation policy vs IAM: Organisation policies set boundaries on what actions are possible (e.g., "you cannot create VMs in this region"), while IAM controls who can perform actions (e.g., "only Bob can create VMs"). The exam will present scenarios where you must choose the right tool.
Predefined constraints: know several examples by name. The exam may ask, "Which constraint prevents use of public IP addresses on VMs?" The answer is "constraints/compute.vmExternalIpAccess". Other common ones are "constraints/compute.requireShieldedVm" and "constraints/iam.allowedPolicyMemberDomains".
Trap patterns to watch for:
They might describe a scenario where a user applies a policy to a folder, then creates a project outside that folder (directly under the organisation). The policy will not apply because the project is not a descendant. Beginners often think policies apply globally.
They might ask about overriding a policy at a child level. The correct answer is that you can only make policies stricter, never more relaxed. A child cannot add a region that a parent banned.
They might list multiple policies at different levels and ask what happens for a specific resource. You must trace the hierarchy upward to find all applicable policies and apply the most restrictive combination.
Questions about folder depth: there is a limit of 10 levels of folders. The exam may ask about best practices for folder structure (recommended 3-5 levels deep).
Question style: Expect scenario-based multiple choice. The stem will describe a company's organisational structure and a security requirement. You must pick the correct hierarchy node and policy combination. They will include one or two distractor options that apply a policy to the wrong level or confuse IAM with organisation policies.
What to memorise: the exact order of the hierarchy (org > folder > project > resource), the fact that policies are enforced at resource creation time (not retroactively unless you use dry-run mode), and the list of 5-6 common predefined constraints. Also remember that you can use the policy simulator before applying a change.
The resource hierarchy in Google Cloud has four levels: organisation node, folders, projects, and then resources like VMs and storage buckets.
Organisation policies are guardrails that restrict what actions are possible at the organisation, folder, or project level, and they inherit downwards to all descendants.
You can only make organisation policies more restrictive at child levels, never less restrictive than what the parent allows.
Organisation policies are not the same as IAM policies: IAM controls who can do something, while org policies control what can be done.
The most restrictive policy wins when multiple policies from different hierarchy levels apply to the same resource.
Common predefined constraints include restrictions on external IP addresses, allowed regions, and requiring shielded VMs or OS Login.
A project must always be a descendant of the organisation node; you cannot have orphaned projects.
You can simulate the effect of an organisation policy before applying it using the policy simulator tool.
These come up on the exam all the time. Here's how to tell them apart.
Organisation Policy
Controls what actions are allowed system-wide (e.g., no public IPs)
Applied at organisation, folder, or project level with downward inheritance
Uses constraints (predefined or custom) to block or allow actions
IAM Policy
Controls who can perform actions (e.g., who can create VMs)
Applied to principals (users, groups, service accounts) with roles
Uses bindings between a principal and a role (like Viewer, Editor)
Organisation Node
Root of the hierarchy, created when domain is linked
Exists exactly once per organisation
Policies applied here affect all descendants
Folder
Middle level in the hierarchy, can be nested
Can exist many times, mirroring departments or teams
Policies applied here affect only its descendants
Predefined Constraint
Provided by Google Cloud out of the box
Covers common use cases like region restriction or external IP ban
Cannot be modified, only enabled or disabled
Custom Constraint
Created by the organisation administrator
Uses Common Expression Language (CEL) to define custom rules
Can match any metadata or condition Google Cloud makes available
Mistake
Organisation policies and IAM (Identity and Access Management) policies are the same thing.
Correct
Organisation policies are guardrails that restrict what actions are possible; IAM policies determine who can perform actions. They work together but are different constructs.
Both are called 'policies' and both appear in the Cloud Console. Beginners see the word 'policy' and assume they control the same thing.
Mistake
If I set an organisation policy on a folder, it automatically applies to all folders and projects in the entire organisation.
Correct
A policy set on a folder applies only to that folder and its direct and indirect descendants (subfolders and projects inside it). It does not apply to projects or folders outside that branch of the hierarchy.
People think 'organisation policy' means it always applies to the entire organisation. The word 'organisation' in the name is confusing—it refers to the type of policy, not its scope.
Mistake
You can override a parent's organisation policy by setting a less restrictive policy on a child project.
Correct
You can only make policies more restrictive at lower levels, never less restrictive. If the parent bans a region, the child cannot add it back.
This mirrors how many beginners think about inheritance in programming (overriding methods) or filesystem permissions, where a child can often change its own settings independently.
Mistake
Organisation policies take effect immediately on all existing resources in the hierarchy.
Correct
Organisation policies are enforced at resource creation time and when the policy is changed, but they do not retroactively delete or modify existing resources unless combined with a remediation tool.
Beginners expect a security policy to act like a corrective command. In reality, an org policy mainly prevents new violations; you must audit and fix existing resources separately.
Mistake
A project can exist without being under an organisation node.
Correct
Every project in Google Cloud is a child of the organisation node. You cannot create a project that is not linked to the organisation hierarchy. The organisation node is the root of all resources.
New users often create projects in a trial account without knowing that an organisation node exists behind the scenes. They think projects are standalone entities.
Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.
An organisation policy sets boundaries on what actions are allowed system-wide (e.g., 'no VMs with public IPs'), while an IAM policy determines who can perform those actions (e.g., 'Bob can create VMs'). They are separate tools that work together.
Yes, you can attach an organisation policy at the project level. However, it will only affect that specific project, not its siblings or parent folders. This is useful for fine-grained control.
The most restrictive policy wins. If the organisation node allows region A and a folder denies region A, the denial takes effect for all projects in that folder. This is called deny precedence.
Organisation policies are enforced when you try to create or modify a resource. Existing resources are not automatically changed, but you can use the policy to stop new violations and then audit and fix existing ones separately.
You can nest folders up to 10 levels deep. Best practice is to keep it to 3-5 levels to avoid complexity and make policy inheritance easier to understand.
A custom organisation policy lets you define your own rule using the Common Expression Language (CEL) to match specific business requirements, for example, 'only allow VMs with at least 4 vCPUs'. Predefined constraints cover common scenarios, but custom ones fill the gaps.
You've finished Organization Policies and Resource Hierarchies. Continue through the PCSE study guide to build a complete picture of the exam.
Done with this chapter?