Bitzu

Associate Cloud Engineer ยท Billing, locations and environment tooling

Budgets and alerts

Creating budgets, threshold rules on actual and forecasted spend, email and Pub/Sub notifications, and why a budget alert does not stop spending by itself.

Key points

  • A budget tracks spend against a set amount for a billing account, projects or services.
  • Thresholds: actual or forecasted spend (forecasts need a recurring calendar period).
  • New budgets start with 50%, 90% and 100% actual thresholds.
  • Notifications: email to billing admins and users, optionally a Pub/Sub topic.
  • An alerts-only budget never caps spending or stops services; automation on Pub/Sub must do that.

Source: https://docs.cloud.google.com/billing/docs/how-to/budgets

Practice questions

Single choice

Which alert thresholds does a newly created budget include by default?

  1. 25%, 50% and 75% of forecasted spend
  2. 50%, 90% and 100% of actual spend
  3. 80% and 120% of forecasted spend
  4. 100% of actual spend only
Show answer

Answer: B. 50%, 90% and 100% of actual spend

New budgets default to actual-spend alerts at 50%, 90% and 100% of the amount.

Select all that apply

Which are valid ways a budget can notify people or systems?

  1. Email to Billing Account Administrators and Users
  2. Messages to a Pub/Sub topic
  3. Automatic SMS to every project Owner
  4. Extra recipients through Cloud Monitoring email channels
  5. Automatic shutdown of running VMs
Show answer

Answer: A. Email to Billing Account Administrators and Users, B. Messages to a Pub/Sub topic, D. Extra recipients through Cloud Monitoring email channels

Email to billing admins and users, a Pub/Sub topic, and extra recipients through Cloud Monitoring email channels are supported. Budgets do not shut down VMs themselves, and there is no built-in SMS.

True or false

True or false: a budget with a custom date range can use forecasted threshold alerts.

Show answer

Answer: False

False. Forecasted thresholds need a recurring calendar period (monthly, quarterly or yearly); custom ranges do not support them.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More Associate Cloud Engineer topics in this module