An enterprise cloud security architect needs to enforce governance guardrails across a Google Cloud organization hierarchy. The mandate requires preventing service account key generation centrally while permitting exceptions for a specific development folder. Additionally, the team must evaluate the impact of restricting external IP attachments on compute instances in production before strict enforcement. Which TWO architectural recommendations achieve these governance objectives?
- Apply the boolean constraint `iam.disableServiceAccountKeyCreation` at the Organization root node and configure an inheritance override rule on the non-production Folder node to disable enforcement.Answer
- Configure the `compute.vmExternalIpAccess` constraint in dry-run mode at the targeted production Folder node to audit non-compliant public IP configurations in Cloud Audit Logs without interrupting active deployments.Answer
- CAssign the primitive `roles/owner` role to security administrators at the folder level so they can manually delete service account keys and revoke public IP assignments.
- DDefine a VPC Service Controls security perimeter around production projects to block Compute Engine virtual machines from requesting external IP addresses.
Answer
The cloud architect should apply the `iam.disableServiceAccountKeyCreation` constraint at the organization root with an inheritance override at the non-production folder level, and configure `compute.vmExternalIpAccess` in dry-run mode on the production folder node to audit compliance.
Applying `iam.disableServiceAccountKeyCreation` at the Organization root with a folder-level inheritance override provides centralized governance while allowing exceptions for non-production environments. Configuring `compute.vmExternalIpAccess` in dry-run mode writes violation events to Cloud Audit Logs without blocking workload deployments, enabling risk evaluation prior to full enforcement.
Step-by-Step Solution
Key Concept
Hierarchy Inheritance and Policy Overrides with Dry-Run Audit Enforcement