Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Optimize Skewed Spark Join

MediumPipelines00:00
Practice interviewer
In session
5 left
00:00

Your question is Optimize Skewed Spark Join. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Scenario

You're reviewing a Spark pipeline that joins a very large transaction dataset with a smaller reference dataset. The job is slow and unstable because a few join keys dominate the data, causing some tasks to run much longer than the rest.

Question

How do you optimize a Spark job that is experiencing severe data skew when joining a massive transaction table with a smaller merchant metadata table?