nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #325

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 sho

The correct answer is D. Save the incoming votes to Pub/Sub. Use the Pub/Sub topic to trigger a Cloud Functions instance. 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.

Submitted by khalil_dz· Mar 30, 2026Planning and configuring a cloud solution

Question

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?

Options

  • ASave the incoming votes to Firestore. Use Cloud Scheduler to trigger a Cloud Functions instance
  • BUse a dedicated instance to process the incoming votes. Send the votes directly to this instance.
  • CSave the incoming votes to a JSON file on Cloud Storage. Process the votes in a batch at the end
  • DSave the incoming votes to Pub/Sub. Use the Pub/Sub topic to trigger a Cloud Functions instance

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    10% (3)
  • D
    83% (24)

Explanation

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.

Topics

#Pub/Sub#Cloud Functions#event-driven architecture#variable throughput

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice