QuestionQ241

Designing and planning a cloud solution architecture

You are building a globally scaled frontend for a legacy streaming-backend data API. The API requires events in strict chronological order and without repeated data for correct processing.

Which products should you deploy to guarantee once-only FIFO (first-in, first-out) data delivery?

  • A Cloud Pub/Sub alone
  • B Cloud Pub/Sub to Cloud Dataflow
  • C Cloud Pub/Sub to Stackdriver
  • D Cloud Pub/Sub to Cloud SQL
Explanation

Pub/Sub alone only guarantees ordering and exactly-once delivery within a single region via ordering keys, so it cannot alone satisfy strict chronological, duplicate-free processing for a globally scaled frontend whose publishers/subscribers span regions. Cloud Dataflow adds the windowing, buffering, and stateful deduplication needed to reorder and dedupe a global stream before it reaches the legacy API, which is why Pub/Sub feeding into Dataflow is required.

Learn more

Community Discussion

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