An enterprise financial institution is auditing its Google Cloud security posture to enforce strict service account lifecycle governance and credential protection. The security team discovered that developers are generating downloadable JSON service account keys for local debugging and using primitive IAM roles across multi-project environments. Furthermore, a legacy application on Compute Engine instances requires access to sensitive third-party API credentials stored in Secret Manager, with an organizational mandate to enforce automated secret rotation and prevent key exfiltration. Which TWO security controls and architecture pattern changes should you implement to satisfy these compliance mandates while adhering to Google-recommended practices? (Select TWO.)
- Enforce the IAM organization policy constraint `iam.disableServiceAccountKeyCreation` at the organization level, and configure Workload Identity Federation or service account impersonation using short-lived credentials for developer access.Cevap
- BGrant developers the Service Account Admin role (`roles/iam.serviceAccountAdmin`) on the project level so they can manage service account credentials without creating raw key files.
- Configure Secret Manager with Cloud Pub/Sub topics to trigger Cloud Functions for automated secret version rotation, and grant the Cloud Run/Function service account Secret Manager Secret Accessor permissions on the target secret.Cevap
- DAssign the primitive Owner role (`roles/owner`) to the compute service accounts executing the rotation functions to ensure uninhibited access across all storage resources and third-party APIs.
- EDeploy Customer-Supplied Encryption Keys (CSEK) for Secret Manager secrets to eliminate the need for Google Cloud KMS key lifecycle management and automatic IAM policy checks.