Question

Difficulty: HardCreating Billing Budgets, Alerts, and BigQuery Exports

A cloud engineering team needs to implement automated cost-management controls and detailed analytics for their organization's Google Cloud infrastructure. They want to receive programmatic triggers to automatically stop non-essential compute workloads when monthly spend reaches 90%90\% of the set budget, while also retaining granular daily cost data for custom SQL queries. Which of the following configuration steps must be performed to meet these requirements? (Select TWO.)

  1. Connect a Cloud Pub/Sub topic to the billing budget to receive threshold notification messages for automated execution.Answer
  2. Enable Cloud Billing export to a BigQuery dataset from the Billing section of the Google Cloud Console.Answer
  3. C
    Configure the budget alert rule settings to automatically cap project quotas and stop virtual machines upon reaching 90%90\%.
  4. D
    Assign the Project Owner role on the application target project to grant permission to configure billing exports for the Billing Account.

Answer

The required steps are: connecting a Cloud Pub/Sub topic to the billing budget to receive programmatic notifications, and enabling Cloud Billing export to a BigQuery dataset within the Billing section of the Google Cloud Console.
Attaching a Cloud Pub/Sub topic to a budget enables programmatic notifications, allowing serverless code like Cloud Functions to disable billing or stop workloads when thresholds are met. Additionally, setting up Cloud Billing export to BigQuery allows raw daily cost data to be stored and analyzed using standard SQL queries.

Step-by-Step Solution

1
Configure programmatic budget actions
Attach a Cloud Pub/Sub topic to the billing budget so budget threshold events are published as messages.
Google Cloud budgets only issue notifications by default. Programmatic actions (such as turning off resources) require Pub/Sub messages to trigger downstream automation like Cloud Functions.
2
Configure detailed cost analytics export
Navigate to the Cloud Billing console and configure detailed billing data export to a target BigQuery dataset.
BigQuery exports provide granular raw billing data for custom SQL analysis and reporting across the organization.

Key Concept

Budget programmatic notifications via Cloud Pub/Sub and Cloud Billing BigQuery export configuration.
Rate this question