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

  • AInterleaved Sort Key across the 45 columns of the fact table
  • BDISTSTYLE EVEN with a single-column sort key on store_region
  • CCompound Sort Key with (transaction_date, store_region)Correct answer
  • DCompound Sort Key placing a random UUID column first before date

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.

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.