Noos
PT EN
RAN-DBDEA-00272
Ranvier · DBDEA

Exam DBDEA Topics: troubleshooting Difficulty: hard

A job joins a large events table with a small users table on `account_id`, and a handful of accounts hold most of the rows. The Spark UI shows one straggler task per run, and AQE skew handling never triggers because the oversized partition stays below both size thresholds. Which technique redistributes the hot key manually?

Options (Reading Mode) Click to filter discussion →
  1. A. Increase `spark.sql.shuffle.partitions` far above the current value, so that the single hot key's rows spread across many smaller tasks
  2. B. Broadcast the large events table to every executor, so each task joins its local slice against the users table
  3. C. Append a random salt value (0 to N) to `account_id`, replicate each users row across every salt, and join on the composite key
  4. D. Repartition the events table by `account_id` before the join, so all rows of each key are co-located in one partition
Reveal answer

Correct answer: Append a random salt value (0 to N) to `account_id`, replicate each users row across every salt, and join on the composite key

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 (C): Append a random salt value (0 to N) to `account_id`, replicate each users row across every salt, and join on the composite key

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.