A cloud operations team needs to enforce automated governance by deploying a serverless remediation pipeline that triggers whenever a GCP billing account exceeds defined financial thresholds. In what order should the engineer execute the configuration steps to establish this automated budget notification and remediation workflow?
- 1Create a dedicated Cloud Pub/Sub topic in the central governance project to serve as the notification bus for financial alerts.
- 2Grant the Cloud Billing Service Agent the Pub/Sub Publisher (roles/pubsub.publisher) IAM role on the newly created Pub/Sub topic.
- 3Deploy the serverless consumer workload (such as Cloud Functions or Cloud Run) and subscribe it to the Pub/Sub topic to execute capping/remediation logic.
- 4Create the Cloud Billing budget, specify cost metrics and threshold percentages, and attach the Cloud Pub/Sub topic under programmatic notification channels.
Cevap
The correct sequence starts with creating the Cloud Pub/Sub topic, granting the Cloud Billing Service Agent the Pub/Sub Publisher role on that topic, deploying the serverless remediation workload subscribed to the topic, and finally creating the Cloud Billing budget with the Pub/Sub programmatic notification channel attached.
To build a functional automated remediation pipeline, infrastructure dependencies must be established in order: first create the message queue (Cloud Pub/Sub topic), second grant the Cloud Billing service identity permission to publish to that queue, third deploy the consumer service that executes remediation actions upon receiving messages, and finally define the budget with the Pub/Sub notification channel connected.
Adım Adım Çözüm
Anahtar Kavram
Automated Budget Remediation Architecture and Cloud Billing Pub/Sub Integration Sequence
Tahmini Süre:2m 0s