A enterprise organization is upgrading its governance posture across its Google Cloud resource hierarchy. The security team mandates that service account key creation must be disabled centrally (`constraints/iam.disableServiceAccountKeyCreation`) to eliminate long-lived credential exposure. However, a legacy workloads folder contains automated deployment scripts that still require key-based authentication while undergoing migration to Workload Identity Federation. The lead cloud architect must enforce the restriction centrally across all existing and future projects while allowing a temporary exception for the legacy workloads folder without compromising the security posture of other departments. Which architectural strategy complies with Google-recommended best practices for Organization Policy management?
- Apply the constraints/iam.disableServiceAccountKeyCreation policy set to Enforce at the Organization root node, and configure an explicit policy override at the legacy workloads Folder node that sets Enforce to False.Answer
- BRevoke the primitive Owner and Editor roles from all developer groups at the Organization level and assign the IAM Workload Identity User role to restrict key generation capabilities across all sub-folders.
- CCreate a VPC Service Controls security perimeter around the legacy workloads folder and configure an egress rule that blocks key generation API calls from leaving the perimeter boundary.
- DGrant the Service Account User role (roles/iam.serviceAccountUser) to the legacy pipeline service accounts at the Project level while revoking Service Account Admin privileges across the rest of the organization.