QuestionQ172
VerifiedStructured StreamingA data engineer needs to process a streaming DataFrame that receives sensor readings every second, with the columns sensor_id, temperature, and timestamp. The engineer must calculate each sensor’s average temperature over the previous 5 minutes while the data continues streaming.
Which code implementation meets this requirement?
Community Discussion