AWS Data Engineer DEA-C01 · Data Store Management · medium
In Amazon Redshift, 95% of analytical queries filter on WHERE transaction_date BETWEEN '2026-01-01' AND '2026-01-31' AND store_region = 'APAC', and never filter on store_region alone without transaction_date. Which Redshift Sort Key design provides the fastest zone-map block pruning and lowest maintenance overhead?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: C. Compound Sort Key with (transaction_date, store_region)
A Compound Sort Key (COMPOUND SORTKEY (transaction_date, store_region)) orders rows first by transaction_date and then by store_region. Because every query includes the leading column (transaction_date), Redshift's 1 MB block zone maps skip all non-matching date and region blocks efficiently without the high VACUUM REINDEX overhead of an Interleaved Sort Key.
Why the other options are wrong
- A. Interleaved Sort Key across the 45 columns of the fact table — Interleaved Sort Keys incur heavy VACUUM REINDEX overhead and are only needed when queries filter on secondary columns independently.
- B. DISTSTYLE EVEN with a single-column sort key on store_region — Placing store_region before transaction_date reduces date-range pruning efficiency for queries that filter primarily by date.
- D. Compound Sort Key placing a random UUID column first before date — Placing a high-cardinality random UUID as the leading sort key column destroys date-range zone-map pruning.
More Data Store Management questions
- A company runs Amazon Athena queries that typically select only 4 columns out of a 120-column dataset stored on Amazon…
- In Amazon Redshift, a 4-billion-row fact_orders table is frequently joined with a 600-million-row fact_shipments table…
- An AWS Glue Crawler runs nightly against s3://analytics-lake/events/year=2026/month=10/. Sometimes upstream producers…
- An Amazon S3 data lake stores 2 PB of raw clickstream archives. Regulatory rules require the objects to remain…
- An IoT ingestion pipeline writes 50,000 tiny 4 KB JSON files per hour into an Amazon S3 partition (200 MB total per…
- An e-commerce company runs operational transactions on Amazon Aurora MySQL and wants near-real-time analytics on those…
- A data engineering team stores petabytes of customer records on Amazon S3 and needs to perform GDPR record-level…
All Data Store Management 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.