Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
In a Spark streaming application that processes events from Azure Event Hubs, which method is best for ensuring stateful computation across batches for windowed aggregations?
A
Employing watermarking to manage late-arriving data
B
Using updateStateByKey function
C
Applying reduceByKeyAndWindow with a sliding window function
D
Implementing mapWithState for efficient state updates