QuestionQ92

VerifiedIngesting and processing the data

A live TV program lets viewers vote with their mobile phones. The event produces a high volume of data over a 3-minute window. You are responsible for the Voting infrastructure and must make sure the platform handles the load and every vote is processed. Partial results must be shown while voting remains open. Once voting is closed, the votes must be counted exactly once while optimizing cost. What should you do?

Question Image

Explanation

Pub/Sub provides durable, asynchronous ingestion that decouples the burst of vote submissions from processing. A Dataflow streaming pipeline can process the stream and write it to both Bigtable and BigQuery. Bigtable supports high read/write throughput with low latency, making it suitable for serving live partial results, while BigQuery retains the data for the final analysis and count. Removing the temporary Bigtable capacity after voting ends minimizes the cost of the short-lived real-time serving workload.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!