Explain it in 60 seconds
Checkpoints and exactly-once in streaming
Data Engineering · Spark · Experienced
How does Structured Streaming achieve fault tolerance and exactly-once results?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Checkpoints store source offsets, state and commit logs.
- Replayable sources like Kafka let Spark reprocess from offsets after failure.
- Idempotent or transactional sinks like Delta give exactly-once output.
- foreachBatch needs your own idempotency, for example using batchId.
- Don't change checkpoint location or incompatible query logic casually.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.