A cloud security engineer needs to enforce strict security baselines for all new Google Cloud projects created within a resource hierarchy folder named `Production-Workloads`. Specifically, the policy must ensure two outcomes across all current and future projects in that folder: default VPC networks are not created during project initialization, and default service accounts are not automatically granted the primitive Editor role upon creation. Which TWO organization policy constraints must be enforced at the `Production-Workloads` folder level to achieve these requirements?
- Enforce the boolean constraint `constraints/compute.skipDefaultVpcCreation`.Answer
- Enforce the boolean constraint `constraints/iam.automaticIamGrantsForDefaultServiceAccounts`.Answer
- CCreate an IAM deny policy at the `Production-Workloads` folder level to revoke `roles/editor` from all service accounts.
- DRemove the `roles/resourcemanager.organizationAdmin` role at the Organization root to disable default resource provisioning.
Answer
The correct configurations are enforcing the boolean organization policy constraints `constraints/compute.skipDefaultVpcCreation` and `constraints/iam.automaticIamGrantsForDefaultServiceAccounts` at the `Production-Workloads` folder level.
To prevent the default VPC from being automatically created during project provision, Google Cloud provides the `constraints/compute.skipDefaultVpcCreation` organization policy. To prevent default service accounts from automatically receiving the Editor role when APIs are enabled, Google Cloud provides the `constraints/iam.automaticIamGrantsForDefaultServiceAccounts` organization policy. Applying both boolean policies at the target folder level ensures all nested projects inherit these security constraints.
Step-by-Step Solution
Key Concept
Organization Policy boolean constraints control resource creation behavior and defaults hierarchically across folders and projects.