GCP Professional Data Engineer Practice Question

You are building a Google Cloud Dataflow streaming pipeline that must publish a 15-minute rolling average of purchase amounts. The average must be recomputed every 5 minutes, and events that arrive up to 2 minutes late must still be reflected in the output. Which Apache Beam windowing configuration best satisfies these requirements?

  • Apply SlidingWindow.of(Duration.minutes(15)).every(Duration.minutes(5)) and set allowedLateness(Duration.minutes(2)).

  • Apply FixedWindows.of(Duration.minutes(15)) with an early trigger firing every 5 minutes.

  • Apply SessionWindows.withGapDuration(Duration.minutes(5)) and allowedLateness(Duration.minutes(2)).

  • Apply SlidingWindow.of(Duration.minutes(5)).every(Duration.minutes(15)) and set allowedLateness(Duration.minutes(2)).

GCP Professional Data Engineer
Ingesting and processing the data
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot