GCP Professional Cloud Architect Practice Question
Your organization hosts dev, test, and production workloads in distinct Google Cloud projects under one Cloud Billing account. Finance requires that when aggregated monthly spend hits 90 % of a US$50 000 budget, the FinOps mailing list is notified. At 100 % spend, every Compute Engine VM in the dev and test projects must shut down automatically while production stays running. You want a low-overhead solution using only managed Google Cloud services. What should you do?
Configure a Cloud Monitoring alert on the billing/gcp_cost metric at 90 % and 100 %; have the alert trigger a Cloud Run job that shuts down all non-production VMs.
Purchase a US$50 000 monthly Committed Use Discount for dev and test workloads and export billing data to BigQuery for manual review of overruns.
Set organization-level Compute Engine quotas for dev and test projects to zero once overall spend reaches 100 % using an Organization Policy constraint.
Create a single Cloud Billing Budget with 90 % email and 100 % Pub/Sub thresholds; trigger a Cloud Function that calls the Cloud Billing and Compute Engine APIs to disable billing and stop VMs in dev and test projects.
Create a single Cloud Billing Budget that covers all projects and sets two threshold rules: one at 90 % with email notifications to the FinOps list, and one at 100 % that publishes a message to a Cloud Pub/Sub topic. Deploy a Cloud Function subscribed to that topic. When triggered, the function calls the Cloud Billing API to disable billing (or set the spending limit to zero) on the dev and test projects and uses the Compute Engine API to stop their VM instances. This relies entirely on managed services-Budgets, Pub/Sub, Cloud Functions, and Cloud APIs-fulfilling both the alerting and automated remediation requirements without introducing additional infrastructure.
Other options fall short:
Relying solely on Cloud Monitoring alerts cannot enforce hard spend stops and does not integrate directly with budgets.
Purchasing CUDs and exporting data to BigQuery offers no enforcement or timely alerting.
Manipulating quotas or policy constraints does not correlate with real-time spend and cannot guarantee shut-down exactly at 100 % of the budget.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a Cloud Billing Budget in Google Cloud?
Open an interactive chat with Bash
How does Pub/Sub enable communication between services in this solution?
Open an interactive chat with Bash
What APIs are involved in stopping VMs and disabling billing in this solution?
Open an interactive chat with Bash
What is a Cloud Billing Budget in GCP?
Open an interactive chat with Bash
How does Cloud Pub/Sub work in this solution?
Open an interactive chat with Bash
What is the role of Cloud Functions in cost control automation?
Open an interactive chat with Bash
GCP Professional Cloud Architect
Designing and planning a cloud solution architecture
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .