Data Ingestion and Transformation
An AWS Glue Spark job joins a 2 TB fact dataset to a filtered lookup dataset that fits comfortably in each executor's memory. Profiling shows shuffle traffic dominates runtime; which change should the engineer make?
Show the answer
Correct answerD. Broadcast the filtered lookup dataset
AWhy not this: Caching helps when data is reused but does not remove the join's shuffle traffic.
BWhy not this: Repartitioning by the join key redistributes records and does not eliminate the expensive fact-data shuffle.
CWhy not this: Reducing partition counts does not eliminate the join shuffle and can reduce parallelism.
DWhy this is right: Broadcasting the small lookup dataset enables local joins without shuffling the large fact dataset.
A broadcast join distributes the small lookup dataset to executors, avoiding a shuffle of the large fact dataset. Repartitioning both datasets still requires redistributing records across the network.