Interview practice question
Caching made the job slower
Data Engineering · Spark · Beginner
A teammate cached every DataFrame in a job "to make it faster", but now it's slower and has memory issues. What do you advise?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Caching costs memory and time to materialize.
- Only cache data reused by multiple actions.
- Unnecessary caches evict useful data and cause spills.
- Unpersist when no longer needed.
- Check the Storage tab in the Spark UI.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.