A digital publishing platform is constructing an automated deployment pipeline using Infrastructure as Code (Terraform) to provision high-throughput compute infrastructure on Google Cloud. The architecture requires deploying a regional Managed Instance Group (MIG) of Compute Engine instances that will autoscale up to 500 N2 vCPUs during traffic bursts. The compute instances must execute using a dedicated workload service account with minimal privileges. Multiple DevOps engineers and automated CI/CD runners will execute Terraform deployments concurrently. Which provisioning design strategy should the Cloud Architect implement to meet these requirements securely and reliably?
- Configure a Cloud Storage backend with object versioning and state locking enabled, pre-emptively request a regional N2 vCPU quota increase, and grant the CI/CD pipeline service account the Service Account User role on the workload service account.Answer
- BConfigure a Cloud Storage backend with object versioning and state locking enabled, pre-emptively request a regional N2 vCPU quota increase, and grant the CI/CD pipeline service account the Service Account Admin role on the workload service account.
- CConfigure a Cloud Storage backend with object versioning and state locking enabled, rely on automatic dynamic quota adjustment during peak traffic deployment, and grant the CI/CD pipeline service account the Service Account User role on the workload service account.
- DStore the Terraform state file in a localized directory on the ephemeral CI/CD runner host, pre-emptively request a regional N2 vCPU quota increase, and grant the CI/CD pipeline service account the Service Account User role on the workload service account.
Answer
Configure a Cloud Storage backend with object versioning and state locking enabled, pre-emptively request a regional N2 vCPU quota increase, and grant the CI/CD pipeline service account the Service Account User role on the workload service account.
The correct option addresses all three critical requirements of enterprise compute provisioning: Cloud Storage remote backend with state locking prevents concurrent pipeline runs from corrupting IaC state; pre-emptively requesting regional vCPU quota increases prevents instance creation failures when the MIG autoscales up to 500 vCPUs; and assigning the Service Account User role allows the deployment pipeline to provision instances under the workload service account without granting excessive security permissions.
Step-by-Step Solution
Key Concept
Compute Resource Provisioning, Quotas, IaC State Management, and Service Account Security