Easy1 markMultiple Choice
Domain 3.3: Deploying Cloud Run and Cloud FunctionsDomain 3.3Cloud FunctionsTriggersCloud Storage

GCP ACE · Question 26 · Domain 3.3: Deploying Cloud Run and Cloud Functions

You are writing a Cloud Function that needs to process images automatically as soon as they are uploaded to a specific Cloud Storage bucket.

Which trigger type should you configure for the Cloud Function?

Answer options:

A.

HTTP trigger

B.

Cloud Pub/Sub trigger

C.

Cloud Storage trigger (google.storage.object.finalize)

D.

Cloud Scheduler trigger

How to approach this question

Identify the event-driven trigger designed to respond to file creations in Cloud Storage.

Full Answer

C.Cloud Storage trigger (google.storage.object.finalize)✓ Correct
Cloud Storage trigger (google.storage.object.finalize)
Cloud Functions can be triggered by various events. To process a file immediately upon upload, you use a Cloud Storage trigger, specifically listening for the `google.storage.object.finalize` event, which fires when a file write is completed.

Common mistakes

Choosing HTTP trigger and assuming Cloud Storage will automatically send a web request without further configuration.

Practice the full GCP Associate Cloud Engineer Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam