Data Store Management

Which Amazon Redshift table setting helps skip data blocks when queries filter on a date range?

Show the answer

Correct answerD. A sort key on the date column

AWhy not this: Redshift primary keys are informational constraints and do not sort data or create an index.

BWhy not this: Compression reduces storage and I/O but does not establish the date ordering needed for effective block pruning.

CWhy not this: A distribution key controls data placement across compute nodes, not date ordering within blocks.

DWhy this is right: Sorting by date groups date values so block metadata can exclude blocks outside the requested range.

A date sort key groups similar dates together, allowing Redshift to skip blocks using their minimum and maximum values. A distribution key controls row placement across compute nodes rather than ordering data for range filtering.