Soru

Zorluk: OrtaCreating Billing Budgets, Alerts, and BigQuery Exports

An organization is configuring billing controls for a newly provisioned Google Cloud environment. The cloud operations team must set up programmatic alert notifications whenever project spending exceeds defined monthly thresholds and export detailed usage data to BigQuery for analytical reporting. Which TWO steps or configuration requirements are necessary to achieve this setup? (Select TWO.)

  1. Grant the user configuring the budgets and exports the Billing Account Costs Manager or Billing Account Administrator role on the target Cloud Billing account.Cevap
  2. Pub/Sub integration must be enabled on the budget to publish message payloads to a Cloud Pub/Sub topic for downstream programmatic handling.Cevap
  3. C
    Enable automated resource capping directly within the budget threshold rules to shut down Compute Engine instances when 100%100\% of the budget is spent.
  4. D
    Grant the user configuring the billing export the Project Viewer role on the target project to automatically inherit Cloud Billing export administrative access.

Cevap

The correct requirements are assigning the Billing Account Costs Manager or Administrator role on the Cloud Billing account, and connecting the budget to a Cloud Pub/Sub topic for programmatic alerts.
Configuring Cloud Billing budgets, setting up alerts, and enabling BigQuery billing exports require permissions on the Cloud Billing account itself (such as Billing Account Costs Manager or Billing Account Administrator). Furthermore, for programmatic alert actions (e.g., executing custom code on threshold breach), budgets must publish notifications to a Cloud Pub/Sub topic.

Adım Adım Çözüm

1
Identify IAM role prerequisites for budget and export configuration
Creating budgets and enabling Cloud Billing BigQuery exports requires IAM permissions (such as Billing Account Costs Manager or Billing Account Administrator) at the Billing Account level, not just project level.
Cloud Billing resources reside above project scope in the Google Cloud resource hierarchy.
2
Determine programmatic notification requirements
Configuring Pub/Sub notifications on the budget sends spend telemetry to a Cloud Pub/Sub topic whenever threshold rules fire.
Budgets do not natively terminate resources; programmatic action relies on Pub/Sub messages consumed by Cloud Functions, Cloud Run, or custom services.

Anahtar Kavram

Cloud Billing budget alerts send emails or Pub/Sub notifications but do not cap resources automatically; setup requires Cloud Billing IAM permissions.
Tahmini Süre:1m 30s
Bu soruyu puanla