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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
A DevOps team is establishing automated cost governance for a sandbox Google Cloud project to prevent runaway expenses. The solution must satisfy the following technical and operational requirements:
Which configuration should the DevOps engineer implement?
Enable the native 'Hard Cap' enforcement setting inside the Cloud Billing budget console to automatically terminate compute resources at 100% spend, and configure Cloud Monitoring email channels for forecasted alerts.
Deploy a custom Kubernetes MonitoringRule custom resource using PromQL expressions targeting invoice metrics, and configure an HTTP webhook notification channel pointing to the remediation runbook.
Configure a Cloud Billing budget with programmatic Pub/Sub notifications, but delete all threshold rules to prevent false-positive email alerts, allowing the Cloud Function to compute spend against the budget amount.
Create a Cloud Billing budget scoped to the sandbox project with both Forecasted (>100%) and Actual (100%) spend threshold rules, connect the budget to a Cloud Pub/Sub topic, and subscribe an automated Cloud Function to process the payload and execute remediation actions.
Enable the native 'Hard Cap' enforcement setting inside the Cloud Billing budget console to automatically terminate compute resources at 100% spend, and configure Cloud Monitoring email channels for forecasted alerts.
Deploy a custom Kubernetes MonitoringRule custom resource using PromQL expressions targeting invoice metrics, and configure an HTTP webhook notification channel pointing to the remediation runbook.
Configure a Cloud Billing budget with programmatic Pub/Sub notifications, but delete all threshold rules to prevent false-positive email alerts, allowing the Cloud Function to compute spend against the budget amount.
Create a Cloud Billing budget scoped to the sandbox project with both Forecasted (>100%) and Actual (100%) spend threshold rules, connect the budget to a Cloud Pub/Sub topic, and subscribe an automated Cloud Function to process the payload and execute remediation actions.
Google Cloud Billing budgets allow organizations to track resource costs against defined monetary targets. When coupled with Cloud Pub/Sub, budget alerts become programmatic triggers that publish real-time budget status messages as structured JSON objects, enabling serverless automation like Cloud Functions or Cloud Run to act as automated remediation runbooks.
>100%) allows the system to extrapolate current consumption trends out to the end of the calendar month and trigger alerts before the allocation is fully depleted.google.billing.v1.CloudBilling).alertThresholdExceeded and forecastThresholdExceeded fields for downstream parsing.costAmount, budgetAmount, and current billing period dates.Cloud Billing budgets do not natively cap infrastructure or enforce hard billing limits out of the box. Using Pub/Sub programmatic notifications with threshold rules is the official, Google-recommended pattern for building automated cost capping, shutdown runbooks, and proactive alerting pipelines.