Question 250
A fact table joins to a dimension with duplicate business keys, inflating revenue totals after the lookup. A Spark join hangs on one task because one customer ID represents half the events and causes a massive shuffle partition. A team uses an inner join for a customer lookup and silently drops transactions with missing dimension records. What is the most appropriate plan for this situation?
Explanation
Correct Answer
A many-to-many join multiplies fact rows and produces incorrect aggregates. Adding generic partitions alone may leave the dominant key concentrated in one task. Join type controls whether unmatched facts survive the enrichment step.
Incorrect Answers
Join type controls whether unmatched facts survive the enrichment step.
Enforce one intended dimension record per join key or join with a version-effective condition; remove the inappropriate broadcast hint and choose a measured shuffle or adaptive join strategy; and select a left join and explicit unknown-member handling when all transactions must remain: adding generic partitions alone may leave the dominant key concentrated in one task.
Remove the inappropriate broadcast hint and choose a measured shuffle or adaptive join strategy; Diagnose skewed keys and apply a supported skew-aware join or salting strategy where justified; and select a left join and explicit unknown-member handling when all transactions must remain: broadcast joins require a side small enough to replicate safely across executors; Requirement 1 requires: enforce one intended dimension record per join key or join with a version-effective condition.






Certified Data Engineer Professional Practice Tests