Analysts repeatedly use Athena to join a year of JSON security logs in S3, filtering by account and date and reading only a few fields; scan costs are high. Original objects must remain unchanged, but derived datasets are permitted. Which change BEST reduces scanned data while preserving SQL joins?
Show the answer
Correct answerB. Create Parquet copies partitioned by account and date, and query the filtered partitions.
AWhy not this: Columnar storage helps, but leaving the data unpartitioned misses partition pruning for the recurring account-and-date filters.
BWhy this is right: Partition pruning skips irrelevant accounts and dates; Parquet lets Athena read selected columns from the remaining data.
CWhy not this: Partition pruning and compression help, but JSON does not provide Parquet's columnar reads for narrow field selections.
DWhy not this: A scan limit can stop expensive queries; it does not optimize scanned data or ensure the requested results are returned.
Partitioned Parquet combines partition pruning with columnar reads, reducing scans for account-and-date filters and narrow field selections without modifying originals. Partitioned compressed JSON reduces some scanning but still requires reading records rather than only selected columns.