Soru

Zorluk: OrtaAssessing and Mitigating Technical Debt in Cloud Architectures

An online insurance platform's backend infrastructure was initially deployed on Google Cloud using ad-hoc automation and direct console actions. An architectural evaluation reveals severe technical debt: developer accounts hold project-level primitive Editor roles, and Terraform state files reside locally on developer laptops without concurrency locking or backup. As the lead cloud architect, which strategy should you recommend to mitigate this technical debt while establishing production governance?

  1. Migrate local Terraform state to a centralized Cloud Storage bucket with versioning and state locking enabled, and replace project-level primitive roles with least-privilege predefined or custom IAM roles.Cevap
  2. B
    Commit and push local Terraform state files directly into a private git repository for version tracking, and reassign developers from project Editor roles to project Viewer roles.
  3. C
    Migrate state files to Cloud Storage with versioning enabled, but retain project Editor roles for developers to ensure fast hotfixing and avoid build pipeline disruptions.
  4. D
    Deploy an Autopilot Google Kubernetes Engine (GKE) cluster to manage infrastructure state workloads, while maintaining developer project Editor access for cluster administration.

Cevap

Migrate local Terraform state to a centralized Cloud Storage bucket with versioning and state locking enabled, and replace project-level primitive roles with least-privilege predefined or custom IAM roles.
The correct recommendation addresses both technical debt vectors: migrating Terraform state to a Cloud Storage remote backend ensures state concurrency locking and backup, while replacing primitive Editor roles with fine-grained predefined or custom IAM roles satisfies least privilege governance.

Adım Adım Çözüm

1
Assess Infrastructure as Code (IaC) state debt
Identify that local state files create high risk of state corruption, secret leakages, and concurrency conflicts.
Centralizing state in Cloud Storage with Object Versioning and backend locking enforces single-source-of-truth governance.
2
Assess Identity and Access Management (IAM) debt
Identify that primitive roles (Owner, Editor, Viewer) grant excessively broad permissions across all project resources.
Replacing primitive roles with fine-grained predefined or custom roles aligns with GCP security best practices and least privilege.

Anahtar Kavram

Mitigating IaC state management and IAM governance technical debt in cloud architectures
Bu soruyu puanla