Explain it in 60 seconds
What a shuffle is and why it's expensive
Data Engineering · Spark · Intermediate
What happens during a Spark shuffle, and why is it expensive?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- A shuffle redistributes data across partitions by key.
- Map side writes shuffle files to disk, reduce side reads them over the network.
- Involves disk I/O, serialization and network transfer.
- Triggered by joins, groupBy, distinct, repartition and window partitions.
- Reduce shuffles by filtering early, broadcasting small tables and avoiding unnecessary repartitions.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.