Advancedhow it works
How do you handle late and duplicate events in a streaming job?
Quick answerFree
Use event time, not processing time. A watermark (for example 10 minutes) tells Spark how late data may arrive; state older than the watermark is dropped, so memory stays bounded.
Detailed answer· 68 words
Interview PrepUnlock the full answer with Interview Prep
Get a 68-word model answer, 4 key points and a visual explainer, plus 21 more Apache Kafka questions.
Also in Pro (₹499 / 90 days).
Key points· 4 points
Interview PrepUnlock with Interview Prep
Visual explainer· animated, step by step
Interview PrepUnlock with Interview Prep
+ 21 more Apache Kafka questions in Interview Prep, each with the full answer.