Google Cloud Associate Cloud Engineer — Question 260

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?

Answer options

Correct answer: D

Explanation

The correct answer is D because using Pub/Sub allows for scalable, asynchronous processing of incoming votes, which is ideal for varying rates of incoming data. Option A is less efficient as it relies on scheduled processing, which may not handle real-time needs well. Option B does not utilize the benefits of cloud scalability, and option C introduces delays by processing votes only at the end of the day, which is not optimal for timely voting results.