Question

Difficulty: MediumAssessing and Mitigating Technical Debt in Cloud Architectures

An online gaming platform's architecture review reveals significant technical debt accumulated during rapid initial scaling on Google Cloud. The audit identifies two major operational and security risks: engineering teams maintain infrastructure using unversioned local Terraform state files stored on developer laptops, and backend service accounts have been granted the primitive Owner role across all GCP projects to simplify component interaction. Which TWO actions should you take to mitigate this technical debt and align with GCP architectural best practices?

  1. Migrate Terraform state management to a centralized Cloud Storage backend with object versioning and state locking enabled.Answer
  2. Audit service account usage and replace primitive Owner roles with least-privilege predefined or custom IAM roles.Answer
  3. C
    Commit local Terraform state files directly into the central application Git repository to synchronize state across developer environments.
  4. D
    Assign the Service Account Admin role to all compute instances so services can dynamically grant themselves required access rights.

Answer

To mitigate technical debt, configure a centralized Cloud Storage backend with object versioning and state locking for Terraform state management, and audit service accounts to replace primitive roles with targeted predefined or custom IAM roles.
Configuring remote Cloud Storage state backends with object versioning and state locking eliminates state drift and concurrency risks. Replacing broad primitive Owner roles on service accounts with targeted predefined or custom roles re-establishes governance and least-privilege security controls.

Step-by-Step Solution

1
Evaluate the Infrastructure as Code (IaC) state management debt.
Local state files create risk of state drift, loss, and race conditions during simultaneous infrastructure updates.
Centralizing state in a remote Cloud Storage bucket with locking and versioning resolves state drift and prevents concurrency corruption.
2
Evaluate the IAM security debt across projects.
Primitive roles like Owner grant excessive permissions, broadening the blast radius in the event of credential compromise.
Replacing primitive roles with fine-grained predefined or custom roles reduces security vulnerability while retaining required operational capabilities.

Key Concept

Mitigating technical debt by modernizing IaC state persistence and remediating over-privileged IAM access.
Estimated Time:1m 30s
Rate this question