Easy1 markMultiple Choice
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?
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
Q01You are starting a new project in Google Cloud and need to create a new GCP project and enable th...EasyQ02A new team member has joined your operations team. They need to be able to view all Compute Engin...MediumQ03Your company is migrating to Google Cloud. You currently manage all employee identities in an on-...MediumQ04Your development team is experimenting with new GCP services in a sandbox project. The finance te...MediumQ05Your company wants to perform complex, custom SQL analysis on their Google Cloud billing data to ...Easy
Expert