QuestionQ79

VerifiedIntegrating applications with Google Cloud services

An application running in Cloud Run validates bucket names against your organization’s compliance rule. You want the Cloud Run application to receive a notification as soon as possible whenever a new Cloud Storage bucket is created, and to alert the project owner if the bucket name is noncompliant. You must configure the notification according to Google-recommended practices. What should you do?

Explanation

Eventarc routes matching Google Cloud events to Cloud Run as HTTP CloudEvents. A Cloud Storage bucket-creation operation can be filtered by the Cloud Audit Logs method name storage.buckets.create, allowing the Cloud Run service to validate the new bucket promptly without relying on log-based monitoring alerts or an unnecessary Pub/Sub hop.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!