Question

Difficulty: HardManaging Compute Engine Resources

An enterprise financial service runs a critical stateless application deployed inside a regional Managed Instance Group (MIG) in `us-central1`. The team needs to deploy a newly created instance template (`finapp-v2`) to the MIG with zero application downtime. Additionally, operational monitoring alerts reveal that during peak traffic events, the MIG attempts to autoscale beyond its current capacity but fails because the project has reached its regional N2 CPU quota limit. Which TWO actions should you perform to execute the update seamlessly and resolve the operational bottleneck?

  1. Perform a rolling update on the MIG referencing the new instance template while setting the maximum unavailable instances to zero.Answer
  2. Request a quota increase for N2 CPUs in the target region through the Google Cloud Console or gcloud Quotas API.Answer
  3. C
    Modify the existing instance template directly using gcloud compute instance-templates edit to update the image and machine type.
  4. D
    Deploy a duplicate Managed Instance Group in a separate zone within the same region to automatically bypass regional N2 CPU quotas.
  5. E
    Grant the deployment service account the Owner primitive role to automatically bypass regional quota restrictions during autoscaling events.

Answer

To update the Managed Instance Group without downtime and resolve the autoscaling quota bottleneck, you must perform a rolling update specifying zero maximum unavailable instances and submit a formal request for an N2 CPU quota increase in the target region.
Updating a Managed Instance Group requires creating a new instance template and starting a rolling update configured with zero maximum unavailable instances so that application availability is maintained throughout the rollout. When instance capacity is bounded by project limits, the correct operational procedure is to request a regional quota increase via the GCP Console or Quotas API.

Step-by-Step Solution

1
Identify the instance template update mechanism
Recognize that instance templates are immutable, requiring a new template and a rolling update policy with `--max-unavailable=0` to guarantee zero downtime.
Setting max unavailable to zero forces the MIG to spin up new instances before taking old instances offline.
2
Identify the quota bottleneck solution
Submit an official quota increase request for N2 CPUs in the `us-central1` region via the Cloud Console IAM & Admin Quotas page or gcloud CLI.
Regional quotas limit resource consumption across all zones in a region regardless of IAM permissions or instance group configurations.

Key Concept

Compute Engine MIG rolling update strategy and GCP regional quota management workflows.
Rate this question