Explain it in 60 seconds
Speculative execution
Data Engineering · Spark · Experienced
What is speculative execution in Spark and when would you turn it on?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Spark launches duplicate copies of slow tasks on other executors.
- The first copy to finish wins, the other is killed.
- Helps with stragglers caused by bad nodes.
- Doesn't help with data skew, since the duplicate has the same data.
- Non-idempotent writes can cause problems with speculation.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.