A biotechnology enterprise manages its Google Cloud infrastructure using a resource hierarchy where all production applications reside inside a folder named 'Production-Workloads'. The security governance board mandates that service account key creation must be blocked across all projects within this folder to reduce exposure to credential leaks. However, a legacy data ingestion project inside 'Production-Workloads' relies on service account keys and cannot be immediately refactored until a Workload Identity Federation migration completes. Which approach should the cloud architect implement to enforce this governance requirement with minimal operational complexity?
- AGrant primitive Owner roles at the 'Production-Workloads' folder level and configure IAM Deny rules on the legacy project to restrict service account key management capabilities.
- BEstablish a VPC Service Controls perimeter around the 'Production-Workloads' folder and create an egress rule excluding the legacy data ingestion project from perimeter restrictions.
- Apply the Organization Policy constraint 'constraints/iam.disableServiceAccountKeyCreation' at the 'Production-Workloads' folder level, and set an explicit policy override enforcing 'Off' at the legacy project level.Answer
- DAssign the Service Account User role to developers at the folder level and revoke the Service Account Admin role from all service account identities within the legacy project.
Answer
Apply the Organization Policy constraint 'constraints/iam.disableServiceAccountKeyCreation' at the 'Production-Workloads' folder level, and set an explicit policy override enforcing 'Off' at the legacy project level.
The correct approach leverages Google Cloud Organization Policies. Applying the boolean constraint 'constraints/iam.disableServiceAccountKeyCreation' at the 'Production-Workloads' folder level enforces key creation restrictions for all current and future child projects. Configuring an explicit project-level policy override with enforcement turned off allows the legacy project to remain exempted without compromising governance across the rest of the folder.
Step-by-Step Solution
Key Concept
Organization Policy Resource Hierarchy Inheritance and Localized Overrides
Estimated Time:2m 0s