A junior data engineer has been asked to develop a streaming data pipeline with a grouped aggregation using DataFramedf. The pipeline needs to calculate the average humidity and average temperature for each non-overlapping five-minute interval. Events are recorded once per minute per device.
Streaming DataFramedf has the following schema:
"device_id INT, event_time TIMESTAMP, temp FLOAT, humidity FLOAT"
Code block:

Choose the response that correctly fills in the blank within the code block to complete this task.
- to_interval("event_time", "5 minutes").alias("time")
- window("event_time", "5 minutes").alias("time")
- "event_time"
- window("event_time", "10 minutes").alias("time")
- lag("event_time", "10 minutes").alias("time")
Show Answer Next Question