exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 153 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 153
Topic #: 1
[All Associate Cloud Engineer Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ESP_SAP
Highly Voted 4 years ago
Correct Answer is (B): 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. Event types 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 Object Finalize 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
upvoted 42 times
...
francisco_guerra
Highly Voted 4 years ago
The answer is B
upvoted 19 times
SSPC
4 years ago
Sure B? Please you could share the link with the Google documentation
upvoted 1 times
Ale1973
3 years, 12 months ago
https://cloud.google.com/functions/docs/calling/storage
upvoted 3 times
...
...
...
Cynthia2023
Most Recent 8 months ago
Selected Answer: B
Google Cloud Functions supports several types of triggers, allowing you to run your functions in response to various events in the Google Cloud environment or via HTTP requests. 1. HTTP Triggers: • HTTP triggers allow your Cloud Function to be invoked via standard HTTP requests. These are useful for building APIs, webhooks, and other services that are accessible over the internet or within your internal network. 2. Cloud Pub/Sub Triggers: • Cloud Functions can be triggered by messages published to Cloud Pub/Sub topics. This is useful for asynchronous event-driven architectures and integrating with systems that publish events to Pub/Sub.
upvoted 2 times
Cynthia2023
8 months ago
3. Cloud Storage Triggers: • Functions can respond to changes in Google Cloud Storage, such as creating, deleting, or updating objects. This is helpful for processing uploaded files, data backups, and more. 4. Firestore Triggers: • These triggers allow functions to execute in response to changes in Google Cloud Firestore data, including document creation, updates, and deletions. They are useful for syncing Firestore data with other data stores, or for handling real-time data updates. 5. Firebase Realtime Database Triggers: • Cloud Functions can be triggered by changes in Firebase Realtime Database. This is similar to Firestore triggers but specific to Firebase's Realtime Database service.
upvoted 1 times
Cynthia2023
8 months ago
6. Firebase Authentication Triggers: • Functions can react to Firebase Authentication events, such as user creation, deletion, or attribute updates. These triggers are useful for custom user management workflows and integration with external systems. 7. Google Analytics for Firebase Triggers: • These triggers enable functions to respond to Analytics events collected by Firebase, useful for custom event processing and integrations. 8. Scheduled (Cron) Triggers: • Cloud Scheduler can be used to trigger functions on a time-based schedule (cron). This is ideal for running batch jobs, regular clean-ups, or other scheduled tasks.
upvoted 1 times
...
...
...
scanner2
12 months ago
Selected Answer: B
Use "Object finalized" event of the Cloud Storage bucket as trigger for the Cloud Functions. https://cloud.google.com/functions/docs/calling/storage
upvoted 2 times
...
Captain1212
12 months ago
Selected Answer: B
B seems the correct option, as we can use the cloud functions as per our requirement for the cloud storage bucket..
upvoted 1 times
...
Angel_99
2 years ago
Selected Answer: B
The answer is B
upvoted 1 times
...
AzureDP900
2 years, 2 months ago
B is correct, it is required on demand when upload happens
upvoted 1 times
...
arvsrv
2 years, 7 months ago
Selected Answer: B
The answer is B
upvoted 2 times
...
Surat
2 years, 7 months ago
I vote for B
upvoted 2 times
...
alaahakim
2 years, 9 months ago
Selected Answer: B
Vote For B
upvoted 4 times
...
vamgcp
2 years, 11 months ago
Correct Answer is B - Use Cloud Functions and configure the bucket as a trigger resource.
upvoted 2 times
...
Zimcruza
3 years, 2 months ago
Question asks: You want to deploy this code snippet. What should you do? To me, none of the answers is relevant to DEPLOYMENT - they all are about how you get the trigger to run ...
upvoted 1 times
...
GoCloud
3 years, 5 months ago
vote for B
upvoted 2 times
...
marialix87
3 years, 5 months ago
I think is B
upvoted 3 times
...
GCP_Student1
3 years, 5 months ago
B. Use Cloud Functions and configure the bucket as a trigger resource.
upvoted 3 times
...
lutoa
3 years, 6 months ago
Answer is B, app engine is for applications, in this case it’s just a code snippet which cloud functions is more suitable
upvoted 2 times
...
victory108
3 years, 7 months ago
B - Use Cloud Functions and configure the bucket as a trigger resource.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago