Question 630
An Athena query over logs has a restrictive WHERE date clause but still scans every month of S3 data. The table is unpartitioned. Why?
Explanation
Correct Answer
Define partitions and appropriate Parquet layout; SQL filtering after full reads does not guarantee a low byte-scan charge.
Incorrect Answers
Athena needs effective partition metadata or projection for whole-partition pruning; ordinary row filters do not automatically avoid all file reads.
HAVING filters aggregation results, not the physical S3 object groups read to compute them. Partition layout and metadata are needed to prune months before scanning.
Schema discovery does not create meaningful date partitions when objects remain unpartitioned. Athena cannot skip whole S3 file groups based solely on a row-level date predicate.






AWS Certified Solutions Architect - Associate SAA-C03 Practice Tests