A global media organization recently completed a rapid cloud migration to Google Cloud, resulting in accrued technical debt across their operations. An architectural audit revealed two critical anti-patterns: infrastructure deployment engineers manage environment changes by executing automated Terraform scripts locally using unversioned state files, leading to frequent state corruption; additionally, application service accounts running stateless workloads on Compute Engine were assigned primitive Owner roles to circumvent deployment permission blockers. Which TWO mitigations should the Cloud Architect implement to resolve this technical debt while following Google Cloud recommended practices? (Select TWO answers.)
- Migrate Terraform state management to a centralized Google Cloud Storage backend configured with object versioning and state locking, and mandate execution via automated CI/CD pipelines.Answer
- Audit application permission usage to replace primitive Owner roles with least-privilege predefined or custom IAM roles attached directly to application service accounts.Answer
- CGrant the Service Account Admin role (roles/iam.serviceAccountAdmin) to the application service accounts so they can dynamically manage their own security bounds and credentials.
- DRe-platform all stateless Compute Engine virtual machines onto a multi-cluster Google Kubernetes Engine (GKE) Enterprise deployment to enforce state locking and cluster access control.
Answer
The Cloud Architect should centralize Terraform state management in a Cloud Storage remote backend with object versioning and state locking integrated into CI/CD pipelines, and replace primitive Owner roles on application service accounts with least-privilege predefined or custom IAM roles.
The correct mitigations address the core technical debt directly. Moving Terraform state management to a Cloud Storage remote backend with versioning and object locking ensures operational state consistency and enables automated pipeline deployments. Concurrently, auditing service account usage and replacing broad primitive Owner roles with minimal predefined or custom IAM roles establishes robust security governance without adding unnecessary infrastructure complexity.
Step-by-Step Solution
Key Concept
Mitigating Technical Debt in Infrastructure as Code and IAM Security Governance