A financial operations team needs to run custom SQL queries on detailed daily cost breakdown and usage metrics across all Google Cloud projects associated with their Cloud Billing account. They want an automated solution that continuously delivers raw billing logs to an analytical repository without relying on custom ingestion scripts. What is the Google Cloud recommended method to accomplish this configuration?
- Configure detailed Cloud Billing export directly within Cloud Billing, directing the automatic data stream to a target BigQuery dataset located in a centralized management project.Answer
- BCreate a Cloud Billing budget with Pub/Sub programmatic notifications that trigger a Cloud Run service to pull cost metrics from the Cloud Billing API daily and append them to BigQuery.
- CGrant the Billing Account User role on the target BigQuery dataset to the default Compute Engine service account in each workload project to push daily billing files.
- DEnable the BigQuery Data Transfer Service API inside each individual workload project and schedule daily transfer jobs to copy cost records into a central BigQuery table.
Answer
The correct approach is to configure detailed Cloud Billing export directly within Cloud Billing, specifying a target BigQuery dataset located in a centralized project.
The correct answer specifies enabling BigQuery export directly within the Cloud Billing settings to a target BigQuery dataset. Google Cloud provides built-in Cloud Billing export functionality that automatically streams detailed cost and usage data into BigQuery tables, allowing organizations to run comprehensive SQL queries across all projects linked to the billing account without maintaining custom ingestion pipelines.
Step-by-Step Solution
Key Concept
Cloud Billing BigQuery Export Configuration