An Amazon Athena table covers S3 data partitioned by date (dt=YYYY-MM-DD), and a new partition arrives every day. Queries miss each new day until someone updates the table's partitions. The team wants new days queryable as soon as data lands, with no extra jobs or catalog updates. What should the engineer do?
Show the answer
Correct answerA. Configure partition projection for dt on the table.
AWhy this is right: Partition projection derives dt values and S3 locations from table properties, so no partition needs to be added to the catalog.
BWhy not this: MSCK REPAIR TABLE is an extra step after every load, and it slows down as the number of partitions grows.
CWhy not this: Columnar Parquet reduces the bytes scanned per query but does not make new partitions visible.
DWhy not this: Query result reuse returns cached results of earlier queries, which would also miss the new partition.
With partition projection, Athena calculates partition values and locations from the table's configuration, so a new day's prefix is queryable as soon as its data lands, without crawlers, MSCK REPAIR TABLE or catalog partition updates. Converting to Parquet reduces scanned bytes but does not register partitions.