A fintech enterprise specializing in real-time transaction reconciliation recently completed a technical debt assessment of its Google Cloud environment following an expedited cloud migration. The audit identified two critical architecture issues: infrastructure deployment state files are stored locally on developer workstations, and the CI/CD deployment service account is assigned the primitive Project Owner role to simplify deployment permissions. Which strategy best mitigates these technical debt findings in accordance with Google Cloud recommended practices?
- Migrate the infrastructure state to a central Cloud Storage bucket configured with object versioning and state locking, and replace the primitive Owner role with fine-grained predefined roles enforcing least privilege on the deployment service account.Cevap
- BStore the local Infrastructure as Code (IaC) state files inside a private Git source control repository alongside application code, and assign the Service Account Admin role to the deployment service account.
- CMigrate state management to a Cloud Storage backend, but retain the primitive Project Owner role on the deployment service account to ensure CI/CD pipeline agility and avoid deployment authorization errors.
- DDeploy a dedicated, multi-zone Google Kubernetes Engine (GKE) cluster specifically to run custom operator pods for managing Terraform state and infrastructure provisioners, while keeping existing project permissions unchanged.
Cevap
Migrate the infrastructure state to a central Cloud Storage bucket configured with object versioning and state locking, and replace the primitive Owner role with fine-grained predefined roles enforcing least privilege on the deployment service account.
The correct strategy addresses both technical debt findings directly using native Google Cloud best practices: storing IaC state in Cloud Storage provides encrypted, locking, and versioned state storage, while replacing primitive roles with fine-grained predefined roles restores least-privilege security controls.
Adım Adım Çözüm
Anahtar Kavram
Mitigating Technical Debt in Cloud Security and Infrastructure Automation