nerdexam
Google

PROFESSIONAL-DATA-ENGINEER · Question #252

You are designing a pipeline that publishes application events to a Pub/Sub topic. Although message ordering is not important, you need to be able to aggregate events across disjoint hourly…

The correct answer is D. Create a streaming Dataflow job that reads continually from the Pub/Sub topic and performs aggregations using tumbling windows. Explanation/Reference: A tumbling window represents a consistent, disjoint time interval in the data stream. https://cloud.google.com/dataflow/docs/concepts/streaming-pipelines#tumbling-windows

Submitted by minji_kr· Mar 30, 2026Designing data processing systems

Question

You are designing a pipeline that publishes application events to a Pub/Sub topic. Although message ordering is not important, you need to be able to aggregate events across disjoint hourly intervals before loading the results to BigQuery for analysis. What technology should you use to process and load this data to BigQuery while ensuring that it will scale with large volumes of events?

Options

  • ACreate a Cloud Function to perform the necessary data processing that executes using the Pub/Sub trigger every time a new message is published to the topic.
  • BSchedule a Cloud Function to run hourly, pulling all available messages from the Pub/Sub topic and performing the necessary aggregations.
  • CSchedule a batch Dataflow job to run hourly, pulling all available messages from the Pub/Sub topic and performing the necessary aggregations.
  • DCreate a streaming Dataflow job that reads continually from the Pub/Sub topic and performs aggregations using tumbling windows.

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    15% (4)
  • C
    4% (1)
  • D
    78% (21)

Explanation

Explanation/Reference: A tumbling window represents a consistent, disjoint time interval in the data stream. https://cloud.google.com/dataflow/docs/concepts/streaming-pipelines#tumbling-windows

Topics

#Pub/Sub#Dataflow#tumbling windows#streaming aggregation

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-DATA-ENGINEER Practice