Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Your team is standardizing observability across multiple Google Cloud environments by managing Cloud Monitoring dashboards as code. You need to construct a dashboard chart widget using Prometheus Query Language (PromQL) to visualize the fraction of regional Pub/Sub publisher quota consumed across all active regions.
The visualization must meet the following technical requirements:
quota_metric and location.${__interval} template variable.consumer_quota monitored resource.Which PromQL expression should you configure in the dashboard definition?
This PromQL query calculates the dynamic quota utilization ratio by comparing the consumed usage rate against the effective allocated limit for Google Cloud APIs within Cloud Monitoring.
consumer_quota resource type alongside the specific Google Cloud metrics serviceruntime.googleapis.com/quota/rate/net_usage and serviceruntime.googleapis.com/quota/limit.rate(). Because API rate limits are represented as operations per minute (60 seconds), dividing the limit by 60 aligns the denominator to per-second units.sum by (quota_metric, location) and max by (quota_metric, location), properly breaking down utilization per region while leveraging the dashboard template variable ${__interval} to adjust smoothly to user zoom levels.__name__ and label selectors) for programmatic JSON/Terraform dashboard definitions.This approach directly reflects the native Cloud Monitoring data model for quota monitoring, providing accurate fractional utilization values (0.0 to 1.0+) that can easily drive color thresholds, charts, and automated alerts.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.