A company needs to enforce a compliance rule that prohibits service account key creation for all Google Cloud projects nested inside the 'Production' folder. What is the correct way to enforce this restriction across all current and future projects in that folder?
- Apply an Organization Policy constraint disabling service account key creation at the 'Production' folder level.Answer
- BGrant the Organization Administrator IAM role to the operations team at the project level.
- CRevoke primitive Viewer permissions from all users at the organization level.
- DAssign a custom IAM role to service accounts that excludes key management permissions at the project level.
Answer
Apply an Organization Policy constraint disabling service account key creation at the 'Production' folder level.
Organization Policies allow administrators to configure constraints on specific Google Cloud resources. Applying a policy constraint at a folder level enforces the rule for that folder and automatically propagates down through resource hierarchy inheritance to all child projects.
Step-by-Step Solution
Key Concept
Organization Policies vs IAM Roles for Resource Hierarchy Constraints