QuestionQ346

Integrating applications with Google Cloud services

Your company has developed an application that uploads a report to a Cloud Storage bucket. When the report is uploaded to the bucket, you want to publish a message to a Cloud Pub/Sub topic. You want to implement a solution that requires little effort.

What should you do?

  • A Configure the Cloud Storage bucket to trigger Cloud Pub/Sub notifications when objects are modified.
  • B Create an App Engine application to receive the file; when it is received, publish a message to the Cloud Pub/Sub topic.
  • C Create a Cloud Function that is triggered by the Cloud Storage bucket. In the Cloud Function, publish a message to the Cloud Pub/Sub topic.
  • D Create an application deployed in a Google Kubernetes Engine cluster to receive the file; when it is received, publish a message to the Cloud Pub/Sub topic.
Explanation

Cloud Storage can be configured with a Pub/Sub notification that sends messages to a chosen Pub/Sub topic when objects change. An upload successfully creating an object triggers the OBJECT_FINALIZE event, so this direct configuration meets the requirement with the least implementation work.

Learn more

Community Discussion

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