ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 267 - Associate Cloud Engineer discussion

Report
Export

Your team is building a website that handles votes from a large user population. The incoming votes will arrive at various rates. You want to optimize the storage and processing of the votes. What should you do?

A.
Save the incoming votes to Firestore. Use Cloud Scheduler to trigger a Cloud Functions instance to periodically process the votes.
Answers
A.
Save the incoming votes to Firestore. Use Cloud Scheduler to trigger a Cloud Functions instance to periodically process the votes.
B.
Use a dedicated instance to process the incoming votes. Send the votes directly to this instance.
Answers
B.
Use a dedicated instance to process the incoming votes. Send the votes directly to this instance.
C.
Save the incoming votes to a JSON file on Cloud Storage. Process the votes in a batch at the end of the day.
Answers
C.
Save the incoming votes to a JSON file on Cloud Storage. Process the votes in a batch at the end of the day.
D.
Save the incoming votes to Pub/Sub. Use the Pub/Sub topic to trigger a Cloud Functions instance to process the votes.
Answers
D.
Save the incoming votes to Pub/Sub. Use the Pub/Sub topic to trigger a Cloud Functions instance to process the votes.
Suggested answer: D

Explanation:

Pub/Sub is a scalable and reliable messaging service that can handle large volumes of data from different sources at different rates. It allows you to decouple the producers and consumers of the data, and provides a durable and persistent storage for the messages until they are delivered. Cloud Functions is a serverless platform that can execute code in response to events, such as messages published to a Pub/Sub topic. It can scale automatically based on the load, and you only pay for the resources you use. By using Pub/Sub and Cloud Functions, you can optimize the storage and processing of the votes, as you can handle the variable rates of incoming votes, process them in real time or near real time, and avoid managing servers or VMs.Reference:

Pub/Sub documentation

Cloud Functions documentation

Choosing a messaging service for Google Cloud

asked 18/09/2024
MD NAZRI BEZAMAN
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first