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
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.
More Data Operations and Support questions
- An AWS Lambda function processes batches of 100 records from an Amazon Kinesis Data Stream. Occasionally, a single…
- An AWS Glue job fails intermittently when an upstream third-party REST API returns HTTP 503 Service Unavailable. You…
- You want to enforce automated data quality checks inside an AWS Glue ETL pipeline so that if Completeness…
- An Amazon S3 table is partitioned by date (s3://logs/dt=2026-01-01/, dt=2026-01-02/, etc.) across 10 years (3,650…
- Multiple business-intelligence analysts run ad-hoc queries in Amazon Athena, and one analyst accidentally executes a…
- To ensure a daily batch pipeline writing to s3://curated/sales/dt=2026-10-28/ is idempotent (so re-running the job for…
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.