🔥 40% Off Crucial Exams Memberships — Deal ends today!

3 hours, 1 minute remaining!

GCP Professional Data Engineer Practice Question

Your e-commerce site streams user clicks from Pub/Sub into a Dataflow pipeline built with Apache Beam. A session is any sequence of events for one user with no more than 30 minutes of inactivity. Product managers expect provisional per-user session counts every 5 minutes of processing time, yet final results must still include events that arrive up to 15 minutes after the session gap closes. Which windowing and triggering setup best satisfies these needs while avoiding unnecessary windows?

  • Use 30-minute fixed windows; add an AfterProcessingTime trigger that fires 5 minutes after the first element and set allowed lateness to 15 minutes.

  • Use sliding windows of 30 minutes that advance every 5 minutes with the default watermark trigger and no allowed lateness.

  • Use session windows with a 30-minute gap; add an early AfterProcessingTime trigger that fires 5 minutes after the first element, keep the default on-time watermark firing, set allowed lateness to 15 minutes, and accumulate fired panes.

  • Use the global window; set an AfterProcessingTime trigger to fire 30 minutes after each element and discard fired panes with no allowed lateness.

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