A logistics organization is building an automated continuous deployment pipeline to manage multi-environment releases of a microservice application across Google Kubernetes Engine (GKE) clusters using Cloud Build and Cloud Deploy. The security and operations teams require that all Infrastructure as Code (IaC) updates executed during the release process maintain state integrity and concurrency locking, and that the execution service account follows the principle of least privilege when delegating compute workloads. Which deployment pipeline configuration fulfills these architectural requirements?
- Configure Cloud Build to execute Terraform using a Cloud Storage remote backend with versioning and object locking, assign the Service Account User role (roles/iam.serviceAccountUser) to the build execution service account for compute resource delegation, and use Cloud Deploy to automate progressive release rollouts.Cevap
- BConfigure Cloud Build to store Terraform state files in a local directory on the temporary build worker instance to accelerate pipeline execution, grant the Service Account User role to the build service account, and execute release rollouts via Cloud Deploy.
- CConfigure Cloud Build to use a Cloud Storage remote backend with state locking, grant the Service Account Admin role (roles/iam.serviceAccountAdmin) to the pipeline execution service account, and use Cloud Deploy to manage release rollouts.
- DConfigure Cloud Build to use a Cloud Storage remote backend with state locking, grant the primitive Owner role (roles/owner) to the deployment execution service account to eliminate permission errors during resource provisioning, and automate releases using Cloud Deploy.
Cevap
Configure Cloud Build to use a Cloud Storage backend with object locking and versioning for Terraform state management, grant roles/iam.serviceAccountUser to the execution service account for least privilege workload delegation, and use Cloud Deploy for automated releases.
The solution using Cloud Build with Cloud Storage remote state storage (featuring object versioning and state locking) ensures state file persistence and prevents concurrent modification errors. Granting the Service Account User role satisfies least-privilege security requirements for attaching service accounts to compute resources without exposing administrative management controls.
Adım Adım Çözüm
Anahtar Kavram
Automated Continuous Deployment Pipelines with IaC State Locking and Least-Privilege IAM
Tahmini Süre:2m 0s