Data Store Management
An Athena table contains years of Parquet event data in Amazon S3. Queries usually filter on a single event date but scan the entire dataset. Which change most directly reduces scanned data?
Show the answer
Correct answerB. Partition by event date and filter on the partition column.
AWhy not this: Combining dates into one file does not enable date-based partition pruning.
BWhy this is right: A date predicate on the partition column lets Athena skip partitions for other dates.
CWhy not this: Compressed JSON sacrifices Parquet's columnar benefits and does not introduce date partition pruning.
DWhy not this: Partitioning by event ID does not align with the date filter and creates unnecessarily high partition cardinality.
Date partitioning lets Athena prune partitions when queries filter on the partition column. Partitioning by event ID does not align with the date predicate and therefore does not provide the intended pruning.