A financial clearing platform on Google Cloud has accumulated significant technical debt following consecutive rapid feature releases. An architectural audit identifies two primary vulnerabilities: operational risk from manual Cloud Console modifications that cause severe configuration drift against infrastructure code, and security risk from application service accounts assigned primitive roles/editor permissions. You are tasked with establishing a technical debt remediation framework that enforces strict infrastructure governance and least-privilege security without disrupting service uptime. Which combination of architectural actions should you recommend?
- Automate Terraform deployments through a CI/CD pipeline, mandate drift detection to review and import out-of-band changes, restrict manual write access to the Cloud Console, and refactor service accounts to use minimal predefined roles.Answer
- BConfigure a scheduled background job to execute automated terraform apply runs that overwrite uncommitted Cloud Console changes without state reconciliation, and assign roles/iam.serviceAccountAdmin to developer identities.
- CRetain primitive roles/editor permissions on existing application service accounts to avoid application access failures, while deploying VPC Service Controls security perimeters to block Console administrative operations.
- DStore Terraform state files inside local Git repositories across developer build environments to track history, and grant roles/owner to application service accounts to streamline deployment authorization across newly added GCP services.
Answer
Automate Terraform deployments through a CI/CD pipeline, mandate drift detection to review and import out-of-band changes, restrict manual write access to the Cloud Console, and refactor service accounts to use minimal predefined roles.
The optimal strategy to resolve IaC technical debt and IAM privilege creep is to centralize IaC execution within automated pipelines, restrict direct manual Console write permissions, reconcile state drift systematically, and downgrade primitive roles to fine-grained predefined roles.
Step-by-Step Solution
Key Concept
Assessing and Mitigating Technical Debt in Cloud Architectures