A distributed GPU job fails with out-of-memory errors on one worker during a group-by, while others have spare memory. What is the likely cause?
- Exam domain
- Data Manipulation and Software Literacy19% of the exam
- Difficulty
- Hard
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Data Manipulation and Software Literacy (19% of the exam)
Objective in the exam guide: Using distributed data processing frameworks for processing big data
Distributed processing at scale brings skew problems.
Why C is the answer
Skewed keys sending most rows to one partition
When one key value dominates, the shuffle sends most rows to one worker. Salting the key or splitting heavy keys spreads the load.
Remember: Key skew causes single-worker memory failures.
How it works
Distributed frameworks shuffle by key; skewed keys overload single workers.
In detail
- Key skew overloads one worker.
- Salt heavy keys or pre-aggregate.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Parquet files being compressedWrongMost tempting
Compression saves memory.
Why it tempts: Compression sounds like it could change memory.
B. Too few columns in the dataWrong
Column count does not cause skew.
C. Skewed keys sending most rows to one partitionRight
Key skew causes single-worker memory failures.
D. Too little disk space on the client laptopWrong
Client disk does not affect worker memory.
Use case
An illustrative scenario, not a real incident.
Illustrative: one store ID holds 40% of rows; salting it into 16 sub-keys fixes the failure.
See it in different ways
stateDiagram-v2 state "Even data" as s0 state "Skewed partition" as s1 state "Out of memory" as s2 state "Balanced" as s3 [*] --> s0 s0 --> s1: one key dominates s1 --> s2 s2 --> s3: salt the key s3 --> [*]
How to read this chart
- It starts at "Even data".
- From "Even data", "one key dominates" moves it to "Skewed partition".
- From "Skewed partition", it moves to "Out of memory".
- From "Out of memory", "salt the key" moves it to "Balanced".
- It ends at "Balanced".
flowchart LR S0["Find heavy keys"] --> S1["Add salt"] --> S2["Aggregate per salted key"] --> S3["Combine results"]
How to read this chart
- Read it in order: Find heavy keys, then Add salt, then Aggregate per salted key, then Combine results.