Explain it in 60 seconds
Watermarks and late data
Data Engineering · Spark · Experienced
What is a watermark in Structured Streaming and why is it needed?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- A watermark tells Spark how late data can arrive, based on event time.
- Spark keeps state for windows until the watermark passes them.
- Data later than the watermark is dropped.
- Without watermarks, state grows forever in aggregations and joins.
- Choose the delay based on real lateness and business tolerance.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.