Medium1 markMultiple Choice
GCP ACE · Question 05 · Domain 1.2: Managing billing configuration
Your company wants to be notified immediately in their Slack channel whenever their monthly Google Cloud spending exceeds 90% of their $5,000 budget.
What is the MOST efficient way to configure this?
Your company wants to be notified immediately in their Slack channel whenever their monthly Google Cloud spending exceeds 90% of their $5,000 budget.
What is the MOST efficient way to configure this?
Answer options:
A.
Create a Cloud Monitoring alert policy based on billing metrics and set the notification channel to Slack.
B.
Create a billing budget, connect it to a Pub/Sub topic, and trigger a Cloud Function to send the Slack message.
C.
Configure a billing export to BigQuery and run a scheduled query every hour to check the cost.
D.
Create a Cloud Logging sink to filter billing logs and route them directly to Slack.
How to approach this question
Look for the native integration path for custom budget alerts: Budgets -> Pub/Sub -> Cloud Function -> External API.
Full Answer
B.Create a billing budget, connect it to a Pub/Sub topic, and trigger a Cloud Function to send the Slack message.✓ Correct
To send custom notifications (like a Slack message) based on budget thresholds, you should configure the Cloud Billing budget to publish notifications to a Cloud Pub/Sub topic. You then create a Cloud Function subscribed to that topic, which processes the JSON message and posts it to the Slack webhook URL.
Common mistakes
Assuming Cloud Monitoring can natively handle budget alerts to Slack without Pub/Sub, or choosing BigQuery exports which are for analysis, not real-time alerting.
Practice the full GCP Associate Cloud Engineer Practice Exam 5
50 questions · hints · full answers · grading
More questions from this exam
Q01You are starting a new initiative and need to create a new Google Cloud project using the command...EasyQ02A developer on your team needs to manage App Engine applications, including deploying new version...MediumQ03You have created a new Google Cloud project. You need to allow a specific group of developers to ...MediumQ04Which statement best describes the relationship between Google Cloud projects and billing accounts?EasyQ06You have just installed the Google Cloud SDK on your local workstation. You need to authenticate ...Medium
Expert