A cloud administrator needs to set up an automated cost-control mechanism that caps spending by triggering a Cloud Run service whenever a project's monthly expenditure exceeds $5,000. Which action should the administrator take when configuring the Cloud Billing budget to enable this automated workflow?
- Publish budget notifications to a Cloud Pub/Sub topic configured to trigger the Cloud Run service.Cevap
- BSelect the automatic instance shutdown action directly within the Cloud Billing budget threshold settings.
- CGrant the Cloud Billing Account Administrator role to the Cloud Run service account.
- DEnable the Cloud Billing API inside the Cloud Run project to allow budget alert execution.
Cevap
Publish budget notifications to a Cloud Pub/Sub topic configured to trigger the Cloud Run service.
Publishing budget notifications to a Cloud Pub/Sub topic enables event-driven cost governance. When threshold events occur, Cloud Billing publishes a message to Pub/Sub, which can automatically invoke a Cloud Run service to perform custom capping logic, such as disabling billing or stopping resources.
Adım Adım Çözüm
Anahtar Kavram
Programmatic Budget Notifications via Cloud Pub/Sub
Tahmini Süre:1m 30s