A digital news publishing company rapidly migrated its microservices to Google Cloud to meet a tight launch deadline. A post-launch architectural assessment reveals significant technical debt: development teams have been making out-of-band manual configuration changes directly in the Cloud Console, resulting in severe infrastructure drift, and compute workloads rely on the default compute service account equipped with the primitive Editor role. You need to establish automated infrastructure governance and remediate this technical debt while ensuring minimal operational disruption. Which strategy should you recommend?
- Import existing cloud resources into Terraform state using infrastructure-as-code import workflows, enforce all future updates through an automated CI/CD pipeline, and replace primitive service account permissions with specific predefined roles based on least privilege.Answer
- BAllow teams to continue using manual Cloud Console modifications for rapid emergency updates while managing only new infrastructure using Terraform scripts, and preserve the primitive Editor role to avoid unexpected service disruptions.
- CReplace service accounts entirely by embedding individual service account JSON keys directly into application source code, and configure Cloud Monitoring alerts to flag manual console edits after they occur.
- DMigrate all basic virtual machine workloads onto a multi-region Google Kubernetes Engine Enterprise cluster with Service Mesh to automatically detect and revert manual Cloud Console configuration drift.
Answer
Import existing cloud resources into declarative IaC state files, route all changes through automated deployment pipelines, and replace broad primitive Editor roles with granular predefined IAM roles following least privilege.
The optimal strategy for mitigating technical debt from rapid cloud adoption involves adopting declarative Infrastructure as Code (such as Terraform) by importing existing resources, automating updates via CI/CD, and auditing permissions to replace primitive roles with minimal predefined IAM roles. This establishes sustainable governance and enforces security best practices.
Step-by-Step Solution
Key Concept
Technical Debt Mitigation via Infrastructure as Code Governance and IAM Least Privilege
Estimated Time:1m 30s