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
I think option D is the best. Pub/Sub is great for handling varying rates.
upvoted 0 times
...
Cletus
5 days ago
And it’s cost-effective too. Only pay for what you use!
upvoted 0 times
...
Annmarie
10 days ago
Exactly! Real-time processing is crucial for votes.
upvoted 0 times
...
Kirk
15 days ago
D offers flexibility. Plus, Cloud Functions can scale automatically.
upvoted 0 times
...
Janessa
21 days ago
C is too slow for a large user base. Batch processing at the end of the day? No thanks!
upvoted 0 times
...
Malcolm
26 days ago
I feel like B could be a bottleneck. A dedicated instance might struggle.
upvoted 0 times
...
Timothy
1 month ago
Option A seems good too, but Firestore might not handle spikes well.
upvoted 0 times
...
Cletus
1 month ago
I agree! It scales well and processes votes in real-time.
upvoted 0 times
...
Annmarie
1 month ago
I think option D is the best. Pub/Sub is great for handling varying rates.
upvoted 0 times
...
Glory
2 months ago
I think C could lead to delays in results, not ideal for voting.
upvoted 0 times
...
Alpha
2 months ago
B is too resource-heavy for high traffic, right?
upvoted 0 times
...
Cristal
2 months ago
Wait, processing votes in a JSON file? That sounds risky!
upvoted 0 times
...
Lai
2 months ago
I disagree, A could be more efficient with Firestore's scalability.
upvoted 0 times
...
Audry
2 months ago
Option D seems like the best choice for real-time processing.
upvoted 0 times
...
Chauncey
2 months ago
I think option B sounds tempting, but dedicating an instance might not handle varying vote rates well.
upvoted 0 times
...
Leonardo
3 months ago
I practiced a similar question where batch processing was less efficient, so I’m leaning away from option C.
upvoted 0 times
...
Carmen
3 months 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
3 months 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