Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Professional Cloud DevOps Engineer practice bank has 1,455 more like it. Try 10 free: instant score, no account.
An SRE team manages a mission-critical, multi-region application deployed across Google Cloud. During sudden traffic surges, horizontal autoscaling operations intermittently fail when Compute Engine regional CPU allocation quotas are depleted, resulting in ResourceExhausted (HTTP 429 / gRPC 8) errors and degraded service availability.
The team requires an automated, proactive capacity management solution that meets these requirements:
Which solution should the team implement?
serviceruntime.googleapis.com/quota/allocation/usage and serviceruntime.googleapis.com/quota/limit, calculates the utilization ratio using div, alerts when utilization exceeds 0.85, and routes notifications to Pub/Sub to trigger an automated remediation Cloud Function.This solution implements proactive quota monitoring and automated capacity mitigation by combining Cloud Monitoring Metric Query Language (MQL) with Google Cloud Pub/Sub and automated serverless workflows. MQL provides advanced querying capabilities that allow multiple time series—such as dynamic usage and dynamic quota limits—to be combined and evaluated mathematically.
consumer_quota resource. MQL fetches both serviceruntime.googleapis.com/quota/allocation/usage and serviceruntime.googleapis.com/quota/limit, aligns them across identical resource dimensions (such as quota_metric, region, and project_id), joins the streams, and uses the div operator to compute the exact utilization ratio in real time.condition val() > 0.85 triggers an incident as soon as consumption reaches 85% of the current limit, well before total exhaustion.ResourceExhausted errors affect production traffic.Monitoring quota utilization as a calculated ratio (usage / limit) is the recommended Site Reliability Engineering practice in Google Cloud. It provides complete observability into capacity constraints without requiring static threshold updates when regional limits are adjusted.
serviceruntime.googleapis.com/quota/rate/net_usage directly against a static threshold value of 85, and use Cloud Tasks to asynchronously dispatch regional traffic redistribution requests.This option configures a standard metric threshold alert against Google Cloud's rate quota metrics using a fixed numerical threshold.
serviceruntime.googleapis.com/quota/rate/net_usage tracks rate quotas (such as API calls per minute), not allocation capacity.The problem involved monitoring API client request rates to avoid exceeding control plane rate limits (such as compute.instances.list calls per minute).
ResourceExhausted error entries in Compute Engine audit logs, and trigger a Cloud Workflow to retry failed instance provisioning using exponential backoff within the exhausted region.This option sets up a reactive alerting policy based on log entries generated when an API request fails with a ResourceExhausted error status, followed by an automated retry loop within the same regional boundary.
ResourceExhausted is inherently reactive. By the time this error appears in Cloud Logging, autoscaling instance creation has already failed and end-user traffic may already be impacted.The scenario focused exclusively on handling transient, short-lived rate quota limits (such as API call rate throttling) where exponential backoff allows the token bucket to replenish.
gcloud compute project-info set-usage-export to dynamically scale regional quota ceilings.This option attempts to gather quota information locally from virtual machine instance metadata and scale project quota ceilings using usage export configurations.
gcloud compute project-info set-usage-export is used solely to configure daily Compute Engine usage and billing reports to a Google Cloud Storage bucket. It has no ability to adjust or increase project resource quotas.The goal was to export daily infrastructure utilization data into Cloud Storage for long-term historical cost allocation and billing analysis.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated