Question

Difficulty: MediumAdvising Development and Operation Teams

A digital publishing firm's development and operations teams are standardizing their Google Cloud deployment practices. Developers currently hold the Editor primitive role on project environments so they can run deployment scripts and troubleshoot infrastructure issues. The security and operations teams require implementing strict least privilege and preventing manual configuration drift across environments. Which recommendation should the Cloud Architect give to best align the development and operations teams?

  1. Configure the automated CI/CD pipeline to authenticate using a dedicated deployment service account with fine-grained custom roles, grant developers permissions to trigger pipeline execution, and revoke developer Editor roles.Answer
  2. B
    Grant the deployment service account the Owner primitive role across all project environments to prevent pipeline permission failures, while maintaining developer Editor roles for rapid troubleshooting.
  3. C
    Grant developer accounts the Service Account Admin role so developers can create, download, and update service account keys directly during deployment pipeline runs.
  4. D
    Instruct developers to store Terraform state files in local developer workstations and manually commit state changes to source control after applying infrastructure updates.

Answer

Configure the automated CI/CD pipeline to authenticate using a dedicated deployment service account with fine-grained custom roles, grant developers permissions to trigger pipeline execution, and revoke developer Editor roles.
The architect should advise delegating deployment responsibilities to an automated pipeline that runs under a service account constrained by least-privilege roles. Developers trigger the automated workflow without holding direct administrative privileges on Google Cloud resources, maintaining security compliance and preventing manual environment drift.

Step-by-Step Solution

1
Identify key operational and security requirements
Requirements demand least privilege enforcement, elimination of direct human infrastructure modification, and prevention of configuration drift.
Direct human access with broad primitive roles leads to untracked manual changes and security policy violations.
2
Establish automated deployment service account boundary
CI/CD pipelines use dedicated service accounts with granular permissions, while developers receive only pipeline trigger permissions.
Separating human developer roles from deployment execution roles ensures auditability and enforces automated least privilege releases.

Key Concept

Advising DevOps on Secure Deployment Automation and IAM Least Privilege
Estimated Time:1m 30s
Rate this question