Medium1 markMultiple Choice
Domain 1.2: Managing billing configurationDomain 1BillingPub/SubCloud Functions

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?

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