AWS Data Engineer DEA-C01 · Data Operations and Support · hard

An AWS Glue PySpark job joins a 2 TB FactClicks dataset with a 50 GB DimCampaigns dataset on campaign_id. In the Spark UI and CloudWatch metrics, 199 out of 200 executors finish their shuffle tasks in 3 minutes, while 1 single executor runs for 55 minutes and eventually fails with an Out-Of-Memory (OOM) error because 65% of all clicks have campaign_id = 'DEFAULT'. Which two techniques resolve this data skew bottleneck? (Select two.)

Published · Last updated · checked before publication — how we verify questions

Options

  • AFilter out or isolate the 'DEFAULT' key into a separate union branchCorrect answer
  • BSet spark.sql.shuffle.partitions to 1 so one executor handles all keys
  • CApply key salting by appending a random prefix to the skewed join keyCorrect answer
  • DReplace columnar Parquet input files with uncompressed CSV files

Answers: A. Filter out or isolate the 'DEFAULT' key into a separate union branch; C. Apply key salting by appending a random prefix to the skewed join key

When a single key ('DEFAULT') accounts for 65% of rows, hash-partitioning sends all those rows to a single Spark shuffle partition/executor. Filtering out or separating the skewed 'DEFAULT' key to process via a separate union branch (A) and salting the join key (appending a random integer 0..N-1 to the skewed key in the fact table and replicating the dimension row N times) (C) distribute the skewed workload evenly across all executors.

Why the other options are wrong

  • B. Set spark.sql.shuffle.partitions to 1 so one executor handles all keys — Setting shuffle partitions to 1 forces 100% of the 2 TB dataset onto a single executor, guaranteeing an immediate OOM crash.
  • D. Replace columnar Parquet input files with uncompressed CSV files — Switching from Parquet to uncompressed CSV increases I/O and memory pressure without fixing hash-partition skew.

All Data Operations and Support questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.