Data Operations and Support
An AWS Glue Spark job joins a large transaction table to a customer lookup table that fits comfortably in each executor's memory. One customer accounts for most transactions, causing a shuffle-join straggler; which change is BEST?
Show the answer
Correct answerA. Broadcast the customer lookup table to the executors.
AWhy this is right: A broadcast join distributes the small lookup and avoids the skewed shuffle of the transaction table.
BWhy not this: Partitioning by the same skewed key still concentrates the dominant customer's transactions.
CWhy not this: More executors cannot divide a single hot-key shuffle partition among concurrent join tasks.
DWhy not this: More hash partitions still send the dominant customer key to one partition.
Broadcasting the small lookup table avoids shuffling the large transaction table by its skewed customer key. Increasing shuffle partitions does not split records sharing the same key across join partitions.