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

2 hours, 31 minutes remaining!

GCP Professional Data Engineer Practice Question

You are designing an Apache Beam pipeline to run on Cloud Dataflow that must process IoT temperature events published to Pub/Sub in real time. The business needs to calculate a rolling 5-minute average temperature per device and write the results to BigQuery every minute. Events can arrive late for up to 10 minutes and must still update the previously emitted aggregates. The same transformation logic must also be reused in a nightly back-fill job that reprocesses the last month of raw events stored in Cloud Storage. Which Beam configuration best satisfies these functional requirements while minimizing duplicated code?

  • Use fixed 5-minute windows with the default watermark, omit allowed lateness, and maintain two separate pipelines-one for streaming from Pub/Sub and one for batch from Cloud Storage.

  • Use session windows with a 10-minute inactivity gap, enable speculative processing triggers, and add custom side inputs when running the batch back-fill job.

  • Configure a 5-minute sliding window with a 1-minute hop, set allowed lateness to 10 minutes, and run the same Beam pipeline against Pub/Sub for streaming and Cloud Storage for batch back-fill.

  • Apply a global window with processing-time triggers that fire every minute and filter out records arriving later than the trigger to keep aggregates stable.

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