Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Associate Cloud Engineer Exam - Topic 5 Question 124 Discussion

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?
B) Use a dedicated instance to process the incoming votes. Send the votes directly to this instance.
A) Save the incoming votes to Firestore. Use Cloud Scheduler to trigger a Cloud Functions instance to periodically process the votes.
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.

Google Associate Cloud Engineer Exam - Topic 5 Question 124 Discussion

Actual exam question for Google's Associate Cloud Engineer exam
Question #: 124
Topic #: 5
[All Associate Cloud Engineer Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

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


Contribute your Thoughts:

0/2000 characters
Glory
1 day ago
I think C could lead to delays in results, not ideal for voting.
upvoted 0 times
...
Alpha
7 days ago
B is too resource-heavy for high traffic, right?
upvoted 0 times
...
Cristal
12 days ago
Wait, processing votes in a JSON file? That sounds risky!
upvoted 0 times
...
Lai
17 days ago
I disagree, A could be more efficient with Firestore's scalability.
upvoted 0 times
...
Audry
22 days ago
Option D seems like the best choice for real-time processing.
upvoted 0 times
...
Chauncey
27 days ago
I think option B sounds tempting, but dedicating an instance might not handle varying vote rates well.
upvoted 0 times
...
Leonardo
1 month ago
I practiced a similar question where batch processing was less efficient, so I’m leaning away from option C.
upvoted 0 times
...
Carmen
1 month ago
I'm not entirely sure, but I feel like using Firestore could lead to issues with scaling if the votes come in too fast.
upvoted 0 times
...
Elenora
1 month ago
I remember we discussed the importance of real-time processing for votes, so I think D might be the best option.
upvoted 0 times
...

Save Cancel