Noos
PT EN
RAN-DBDEA-00091
Ranvier · DBDEA

Exam DBDEA Topics: troubleshooting Difficulty: hard

A PySpark job joins a 4 TB events table with a small dimension table on `user_id`. One stage has 200 tasks: 199 finish in under two minutes, but one task runs for 38 minutes. The stage-level summary metrics show: ```text Shuffle read size per task: min 14 MB | median 32 MB | max 7.9 GB Task duration: min 21 s | median 48 s | max 38 min ``` What is the most likely diagnosis?

Options (Reading Mode) Click to filter discussion →
  1. A. Too few shuffle partitions: all tasks are uniformly too large, so spark.sql.shuffle.partitions should be increased to shrink every task
  2. B. Disk spill: the stage is dominated by spilling shuffle data to local disk, which the duration column reveals
  3. C. A broadcast timeout: the small table exceeded the broadcast threshold and the join fell back to a shuffle
  4. D. Data skew on user_id: one partition received 7.9 GB of shuffle data versus a 32 MB median, producing a single long-running straggler task
Reveal answer

Correct answer: Data skew on user_id: one partition received 7.9 GB of shuffle data versus a 32 MB median, producing a single long-running straggler task

Reference: https://docs.databricks.com/aws/en/optimizations/spark-ui-guide/long-spark-stage

02 — The Myelin Layer · Canonical Discussion

Where the exam tries to trick you — and how those who passed solved it.

0 Passed

contributed to this question

Answer Distractor Matrix Click an option to filter or open its dissection.
✦ Consolidated Synthesis (Wiki) rev. #1 (baseline) · CC BY-SA 4.0
Start synthesis for this question →

No community synthesis consolidated for this question yet. Below is the verifiable official starting point — if you passed the exam, open the option dissection.

Official Answer (D): Data skew on user_id: one partition received 7.9 GB of shuffle data versus a 32 MB median, producing a single long-running straggler task

Ranvier · DBDEA

Contribute to this Question

Your contribution builds your Orbital Sheath

Peer contributions

No public contribution yet. Be the first who passed to explain why the distractors trick candidates — your contribution builds your Orbital Sheath.