A company manages a workload on Google Cloud with an established monthly budget of 7,000, and as soon as spending trends indicate that total costs will exceed $10,000 by the end of the current billing cycle. How should a Cloud Engineer configure the budget alert rules in Cloud Billing to meet these requirements?
- Create one threshold rule set to 70% of Actual spend, and a second threshold rule set to 100% of Forecasted spend.Answer
- BCreate a single threshold rule set to 70% of Actual spend, and select the option to automatically shut down instances if the forecasted cost exceeds 100%.
- CGrant the Billing Account Viewer role to the Cloud Pub/Sub service account so that Google Cloud automatically generates linear trend metrics for alert policies.
- DEnable the Cloud Billing API in the workload's consumer project and create a custom Cloud Monitoring metric for end-of-month cost projection.
Answer
Configure two threshold rules in the Cloud Billing budget: one rule set to 70% based on Actual spend and another rule set to 100% based on Forecasted spend.
Google Cloud Billing budgets permit defining multiple threshold rules per budget based on either 'Actual' spend or 'Forecasted' spend. A threshold of 70% Actual triggers when accrued spend hits 10,000.
Step-by-Step Solution
Key Concept
Cloud Billing Budget Threshold Triggers (Actual vs. Forecasted)