Question

Difficulty: MediumAdvising Development and Operation Teams

A telemetry platform team operating a global IoT data ingestion service on Google Cloud is restructuring their deployment pipeline and environment governance. Currently, engineers perform manual infrastructure modifications through the Cloud Console and authenticate CI/CD jobs using long-lived service account keys saved locally. As a Principal Cloud Architect, you are advising the development and operations teams on implementing GCP best practices for automation, security, and state management. Which TWO practices should you recommend? (Select TWO.)

  1. Authenticate external CI/CD deployment pipelines using Workload Identity Federation rather than exporting long-lived service account JSON keys.Answer
  2. Store Terraform state files in a Cloud Storage bucket configured with object versioning and state locking enabled.Answer
  3. C
    Grant the Editor primitive role to the deployment service account to ensure all existing and future infrastructure provisioning operations succeed.
  4. D
    Maintain Infrastructure as Code state files within developer local Git repositories to track infrastructure revisions alongside application source code.
  5. E
    Assign the Service Account Admin role to developer accounts to allow Compute Engine instances to run under application service accounts.

Answer

The correct recommendations are authenticating external CI/CD deployment pipelines using Workload Identity Federation instead of long-lived keys, and storing Terraform state files in a Cloud Storage bucket configured with object versioning and state locking.
Advising DevOps teams effectively involves enforcing key security and operational principles. Authenticating pipelines using Workload Identity Federation avoids storing long-lived credentials, and using Cloud Storage for Terraform state management ensures centralized, locked, and versioned state file tracking.

Step-by-Step Solution

1
Evaluate identity and authentication requirements for deployment automation.
Workload Identity Federation replaces long-lived key management with short-lived, federated credentials.
Eliminating exported service account keys mitigates credential exfiltration risk and management overhead.
2
Establish secure Infrastructure as Code (IaC) state management standards.
Remote state in Cloud Storage with versioning and object locking guarantees state consistency.
Prevents state file corruption and race conditions across multi-developer teams.

Key Concept

Advising Development and Operation Teams on Secure Automation and IaC Best Practices
Rate this question