A logistics enterprise is deploying an automated CI/CD pipeline using Infrastructure as Code (IaC) with Terraform to provision regional Compute Engine Managed Instance Groups (MIGs) across multiple GCP projects. The design requirements mandate enforcing least-privilege access for deployment service accounts, maintaining Infrastructure as Code state integrity against concurrent execution conflicts, and preventing deployment failures during large-scale compute resource provisioning. Which architectural and provisioning practices should you incorporate into this solution? (Select THREE choices.)
- Configure the Terraform backend to use a Google Cloud Storage bucket with object versioning and state locking enabled.Cevap
- Grant the deployment service account the Service Account User role (roles/iam.serviceAccountUser) on the target workload service account.Cevap
- Verify and request regional Compute Engine CPU and instance quota increases prior to executing automated large-scale instance group provisioning.Cevap
- DAssign the primitive Editor IAM role to the default Compute Engine service account so instance workloads can freely provision dependent services.
- EProvision a private GKE cluster for the build workers while leaving control plane authorized networks disabled to allow unrestricted external management access.
Cevap
To securely and reliably provision compute resources using automated pipelines, configure a Cloud Storage backend with object versioning and state locking for Terraform, grant the deployment worker the Service Account User role on the target workload service account, and request regional resource quotas prior to scaling deployment capacity.
Safe compute provisioning requires establishing remote state locks on IaC backends to prevent concurrent modification, applying the Service Account User role to delegate compute identity access securely, and verifying regional compute quota headroom in advance of scaling operations.
Adım Adım Çözüm
Anahtar Kavram
Best practices for provisioning Compute Engine resources using Infrastructure as Code (IaC) state management, IAM least privilege, and resource quota planning.