A global gaming enterprise is preparing to launch a real-time multiplayer backend hosted on Google Cloud using automated Infrastructure as Code (IaC) pipelines with Terraform. The design requires deploying regional Compute Engine Managed Instance Groups (MIGs) across multiple zones to process high-throughput UDP traffic. To support the upcoming launch of 50,000 concurrent game instances, the deployment automation must prevent state concurrency conflicts, ensure successful automated resource creation without runtime quota rejections, and strictly observe least-privilege security principles. Which TWO architectural and administrative actions should the team perform as part of the initial provisioning strategy?
- Configure the Terraform deployment pipeline to use a Cloud Storage backend configured with bucket versioning and object state locking enabled.Answer
- Submit a request to increase the regional Compute Engine N2 vCPU quota in the target deployment regions prior to triggering the automated provisioning pipeline.Answer
- CGrant the deployment pipeline service account the Service Account Admin role (roles/iam.serviceAccountAdmin) on the custom compute service account attached to the MIG instances.
- DAssign the primitive Owner role (roles/owner) to the Compute Engine service account to ensure uninterrupted communication with backend Cloud Storage and Logging APIs.
- EMigrate the game server instances to a Google Kubernetes Engine (GKE) Autopilot cluster to host non-containerized legacy monolithic C++ game binary executables directly.
Answer
The correct provisioning strategy requires storing the Terraform state file in a Cloud Storage backend configured with versioning and object locking, and requesting regional Compute Engine vCPU quota increases before initiating the deployment.
Establishing a remote Cloud Storage backend with object versioning and state locking protects the IaC environment from concurrent modification and state file corruption. Concurrently, requesting regional Compute Engine vCPU quota increases prior to triggering large automated deployments ensures that compute provisioning requests succeed without hitting default quota caps.
Step-by-Step Solution
Key Concept
Provisioning Compute Engine Resources and IaC State Management
Estimated Time:2m 0s