nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #198

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?

The correct answer is B. Use Cloud Functions and configure the bucket as a trigger resource. Google Cloud Storage Triggers Cloud Functions can respond to change notifications emerging from Google Cloud Storage. These notifications can be configured to trigger in response to various events inside a bucket- object creation, deletion, archiving and metadata updates. Note…

Submitted by lars.no· Mar 30, 2026Deploying and implementing a cloud solution

Question

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?

Options

  • AUse App Engine and configure Cloud Scheduler to trigger the application using Pub/Sub.
  • BUse Cloud Functions and configure the bucket as a trigger resource.
  • CUse Google Kubernetes Engine and configure a CronJob to trigger the application using
  • DUse Dataflow as a batch job, and configure the bucket as a data source.

How the community answered

(38 responses)
  • B
    92% (35)
  • C
    3% (1)
  • D
    5% (2)

Explanation

Google Cloud Storage Triggers Cloud Functions can respond to change notifications emerging from Google Cloud Storage. These notifications can be configured to trigger in response to various events inside a bucket- object creation, deletion, archiving and metadata updates. Note: Cloud Functions can only be triggered by Cloud Storage buckets in the same Google Cloud Platform project. Cloud Storage events used by Cloud Functions are based on Cloud Pub/Sub Notifications for Google Cloud Storage and can be configured in a similar way. Supported trigger type values are: google.storage.object.finalize google.storage.object.delete google.storage.object.archive google.storage.object.metadataUpdate Trigger type value: google.storage.object.finalize This event is sent when a new object is created (or an existing object is overwritten, and a new generation of that object is created) in the bucket. https://cloud.google.com/functions/docs/calling/storage#event_types

Topics

#Cloud Functions#Cloud Storage trigger#event-driven#serverless

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice