What should you do?


You have created a code snippet that should be triggered whenever a new file is uploaded to a Cloud Storage bucket. You want to deploy this code snippet.

What should you do?
A . Use App Engine and configure Cloud Scheduler to trigger the application using Pub/Sub.
B . Use Cloud Functions and configure the bucket as a trigger resource.
C . Use Google Kubernetes Engine and configure a CronJob to trigger the application using Pub/Sub.
D . Use Dataflow as a batch job, and configure the bucket as a data source.

Answer: A

Explanation:

Reference: https://cloud.google.com/scheduler/docs/tut-pub-sub

Leave a Reply

Your email address will not be published.