Multiple Choice
You are analyzing the price of a company's stock. Every 5 seconds, you need to compute a moving average of the past 30 seconds' worth of data. You are reading data from Pub/Sub and using DataFlow to conduct the analysis. How should you set up your windowed pipeline?
A) Use a fixed window with a duration of 5 seconds. Emit results by setting the following trigger: AfterProcessingTime.pastFirstElementInPane() .plusDelayOf(Duration.standardSeconds(30) )
B) Use a fixed window with a duration of 30 seconds. Emit results by setting the following trigger: AfterWatermark.pastEndOfWindow() .plusDelayOf(Duration.standardSeconds(5) )
C) Use a sliding window with a duration of 5 seconds. Emit results by setting the following trigger: AfterProcessingTime.pastFirstElementInPane() .plusDelayOf(Duration.standardSeconds(30) )
D) Use a sliding window with a duration of 30 seconds and a period of 5 seconds. Emit results by setting the following trigger: AfterWatermark.pastEndOfWindow()
Correct Answer:

Verified
Correct Answer:
Verified
Q211: You are deploying a new storage system
Q212: For the best possible performance, what is
Q213: As your organization expands its usage of
Q214: You are designing a basket abandonment system
Q215: After migrating ETL jobs to run on
Q217: You are designing a cloud-native historical data
Q218: Which of these statements about BigQuery caching
Q219: You need to create a data pipeline
Q220: MJTelco Case Study Company Overview MJTelco is
Q221: Which methods can be used to reduce