A financial technology company's platform operations and development teams manage infrastructure across Google Cloud projects using an external CI/CD pipeline and Terraform. The teams face two critical operational issues: CI/CD deployments rely on long-lived service account JSON keys stored in third-party runner secrets, creating a security compliance risk; additionally, developers frequently perform manual emergency configuration changes in the Cloud Console, causing severe state drift and deployment pipeline failures. As the Cloud Architect advising these teams on Google Cloud best practices, which TWO actions should you recommend to remediate these security and operational challenges while adhering to the principle of least privilege? (Select TWO.)
- Configure Workload Identity Federation to allow the external CI/CD runner to exchange short-lived OpenID Connect (OIDC) tokens for GCP IAM service account credentials without using downloadable JSON keys.Answer
- Restrict manual write access to cloud resources via IAM permission boundaries, and integrate automated continuous drift detection using Cloud Asset Inventory or scheduled Terraform plan runs.Answer
- CAssign the primitive Owner IAM role to the deployment service account across all managed projects to guarantee automated pipelines possess uninhibited execution privileges.
- DGrant developers the Service Account Admin role in production so they can quickly regenerate and manually export new service account JSON keys during emergency deployment failures.
- EAllow developers to maintain local unversioned state files on their workstations when hotfixing resources in the Cloud Console to avoid central state storage locking conflicts.