An organization wants to configure a daily export of detailed Cloud Billing data to a BigQuery dataset located in a dedicated cost-management project. A cloud engineer is assigned to set up this export. Which IAM roles must be granted to the cloud engineer to successfully configure the Cloud Billing export to BigQuery?
- Billing Account Administrator (or Billing Account Costs Manager) on the Cloud Billing account, and BigQuery Data Editor (or BigQuery Admin) on the target project containing the BigQuery dataset.Answer
- BProject Owner on the target project containing the BigQuery dataset, without any IAM roles granted on the Cloud Billing account.
- CBilling Account Viewer on the Cloud Billing account, alongside a Cloud Billing Budget threshold rule configured to trigger an automated export action.
- DBilling Account User on the Cloud Billing account, provided the BigQuery API is enabled in the organization's central billing service project rather than the target project.
Answer
Granting the Billing Account Administrator (or Billing Account Costs Manager) role on the Cloud Billing account and the BigQuery Data Editor (or BigQuery Admin) role on the target project containing the BigQuery dataset.
To set up a Cloud Billing export to BigQuery, an administrator needs dual-level permissions: permission to read/export billing settings on the Cloud Billing account (Billing Account Administrator or Billing Account Costs Manager) AND permission to write to the destination BigQuery dataset in the target project (BigQuery Data Editor or BigQuery Admin).
Step-by-Step Solution
Key Concept
BigQuery Billing Export IAM Permissions
Estimated Time:50s