A Spark job is processing a large join: almost all tasks in the stage finish in a minute, but the last two hang for an hour and sometimes fail with OOM. What's going on, and how would you fix it?
~4 min by voice
How to approach it
The interviewer checks whether the candidate recognizes data skew on the join key from the symptoms, can confirm it with facts rather than guesses, and knows the set of fixes along with their costs: from filtering junk keys to AQE, broadcast and salting.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.