PROFESSIONAL-CLOUD-DEVELOPER · Question #395
You have an application running in Cloud Run that validates bucket names based on your organization's compliance rule. You want the Cloud Run application to receive a notification as quickly as possib
The correct answer is B. Configure an Eventarc trigger using the storage.buckets.create filter that sends a notification to. Configuring an Eventarc trigger with the storage.buckets.create filter provides real-time, event- driven notifications to the Cloud Run endpoint as soon as a new bucket is created, following Google-recommended practices for integrating Cloud Storage and Cloud Run.
Question
You have an application running in Cloud Run that validates bucket names based on your organization’s compliance rule. You want the Cloud Run application to receive a notification as quickly as possible each time a new Cloud Storage bucket is created, and send an alert to the project owner if the bucket name is not in compliance. You need to configure the notification while following Google-recommended practices. What should you do?
Options
- ACreate a log-based metric with an alerting policy that sends a notification using the webhook to
- BConfigure an Eventarc trigger using the storage.buckets.create filter that sends a notification to
- CConfigure a log-based alerting policy using the storage.buckets.create filter in the audit logs that
- DConfigure a log-based alerting policy using the storage.buckets.create filter in the audit logs that
How the community answered
(35 responses)- A14% (5)
- B74% (26)
- C9% (3)
- D3% (1)
Explanation
Configuring an Eventarc trigger with the storage.buckets.create filter provides real-time, event- driven notifications to the Cloud Run endpoint as soon as a new bucket is created, following Google-recommended practices for integrating Cloud Storage and Cloud Run.
Topics
Community Discussion
No community discussion yet for this question.