Question

Difficulty: MediumInfrastructure as Code and Environment Provisioning

A global logistics provider provisions short-lived operational simulation environments in Google Cloud using automated Infrastructure as Code (IaC) workflows. During high-demand testing cycles, automated environment creation fails because the provisioning pipeline attempts to allocate Compute Engine VM instances that exceed the project's regional CPU quota limits before previous temporary environments are destroyed. Which architectural approach best ensures reliable and predictable environment provisioning?

  1. Proactively request regional compute quota increases based on peak concurrency projections and implement quota monitoring alerts within the environment management pipeline.Answer
  2. B
    Embed automated gcloud commands inside the IaC pipeline to request an immediate regional quota increase whenever a quota limit error is intercepted at runtime.
  3. C
    Assign the Owner primitive IAM role to the CI/CD service account to allow it to override regional compute quota restrictions during environment creation.
  4. D
    Configure the IaC state files to store state locally on the ephemeral CI/CD runner disk to bypass remote backend state locks and force parallel environment teardowns.

Answer

Proactively request regional compute quota increases based on peak concurrency projections and implement quota monitoring alerts within the environment management pipeline.
The correct strategy involves proactively assessing peak capacity requirements, requesting necessary regional compute quota adjustments ahead of deployment, and setting up alerting on quota consumption. This prevents IaC automation from encountering unexpected quota limits during environment provisioning.

Step-by-Step Solution

1
Analyze the root cause of the environment provisioning failures.
Provisioning fails due to regional Compute Engine CPU resource quota limits being exceeded during overlapping lifecycle events.
Google Cloud quotas cap resource usage per region/project to prevent unexpected resource exhaustion.
2
Evaluate the nature of GCP quota adjustments.
Quota increases cannot be applied instantaneously in-line during an IaC apply step.
Quota increases require asynchronous evaluation and approval.
3
Formulate a reliable IaC capacity and provisioning governance strategy.
Forecast peak concurrent resource needs and submit regional quota increase requests ahead of time while monitoring usage via Cloud Monitoring.
This guarantees adequate quota availability for automated environment provisioning.

Key Concept

Resource Quotas and Capacity Governance in Automated Environment Provisioning
Rate this question