An enterprise cloud engineering team needs to enforce financial governance across their Google Cloud organization. They are tasked with two primary objectives: first, executing automated, custom remediation code whenever project spending exceeds a specific budget threshold; second, performing continuous, detailed SQL analytics on billing data. Which TWO configuration steps are required to implement this architecture? (Select TWO answers.)
- Attach a Cloud Pub/Sub topic to the Cloud Billing budget notification settings, and configure an event-driven subscriber such as a Cloud Function to execute automated remediation logic.Cevap
- Grant the user or service account configuring the BigQuery billing export the Billing Account Administrator role on the billing account and the BigQuery Data Editor role on the project hosting the destination dataset.Cevap
- CEnable the 'Auto-Cap Spending' policy directly within the Cloud Billing budget threshold rules to automatically terminate running virtual machines when budget limits are breached.
- DAssign the Project Owner role on the destination export project to the Cloud Billing Service Account, enabling automatic creation of the BigQuery export dataset without dataset-level IAM assignments.
Cevap
To implement programmatic budget remediation and detailed cost analysis, administrators must connect the budget alerts to a Cloud Pub/Sub topic (which triggers serverless functions) and assign both the Billing Account Administrator role on the billing account and BigQuery Data Editor role on the export destination project.
The correct requirements involve two distinct configurations: First, Google Cloud Billing budgets do not halt billing or terminate workloads natively when a threshold is crossed. To execute programmatic actions, the budget must publish messages to a Cloud Pub/Sub topic, which triggers a serverless application (such as a Cloud Function) to disable billing or delete resources. Second, configuring BigQuery billing export requires proper authorization across both scope boundaries: the Billing Account Administrator role on the billing account to configure the export, and the BigQuery Data Editor (or Admin) role on the project hosting the dataset to store the exported tables.
Adım Adım Çözüm
Anahtar Kavram
Programmatic Billing Budget Enforcement and BigQuery Billing Export IAM Permissions