Topic 1 Question 268
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?
Save the incoming votes to Firestore. Use Cloud Scheduler to trigger a Cloud Functions instance to periodically process the votes.
Use a dedicated instance to process the incoming votes. Send the votes directly to this instance.
Save the incoming votes to a JSON file on Cloud Storage. Process the votes in a batch at the end of the day.
Save the incoming votes to Pub/Sub. Use the Pub/Sub topic to trigger a Cloud Functions instance to process the votes.
ユーザの投票
コメント(4)
- 正解だと思う選択肢: D
Pub/Sub: Google Cloud Pub/Sub is a messaging service which directly uses for this purpose.
Cloud Functions: By triggering a Cloud Function with a Pub/Sub topic, you can process the votes as they arrive, ensuring low-latency handling and efficient scaling based on demand. This approach provides real-time processing and can handle bursts of traffic effectively.
👍 5BuenaCloudDE2024/07/19 - 正解だと思う選択肢: D
Pub/Sub (a messaging service) triggering a Cloud Function (the glue between services that are otherwise independent) to trigger something else to process the votes
👍 3flummoxed_individual2024/07/24 - 正解だと思う選択肢: D
D. is the correct answer
👍 2Timfdklfajlksdjlakf2024/08/30
シャッフルモード