How to Make Amazon Athena Queries on CSV Files Run Faster?
Short answer
C Convert the uncompressed .csv data to Apache Parquet with Snappy compression so Athena can prune columns and scan far fewer bytes per query.
Question
Key Takeaways
It tests whether you know Athena charges and performs by data scanned, so a columnar format (Parquet) beats merely compressing the existing row-based CSV format — the trap is picking gzip or Snappy on .csv, which still reads every column.
This question asks which change will MOST speed up Amazon Athena queries whose source files are uncompressed .csv and whose users filter on a single column. The answer is to convert the data to Apache Parquet with Snappy compression, because columnar storage plus compression cuts the bytes Athena must scan.
Common mistake: Choosing gzip or Snappy compression on the .csv files (options B or D). Compression shrinks file size, but .csv stays row-oriented, so Athena still reads every column of every row; only a columnar format like Parquet enables column pruning and predicate pushdown.
Expert Analysis
Why the Answer Is Correct
Athena is a Presto/Trino-based engine that pays for and performs on the amount of data scanned, so the biggest win comes from reducing the columns and row groups touched per query. Apache Parquet is a columnar format, and the question states users "perform most queries by selecting a specific column," which is exactly the access pattern Parquet is optimized for through column pruning, predicate pushdown and per-column statistics. Layering Snappy on top of Parquet further shrinks the bytes read while remaining splittable and fast to decompress, which is why AWS's own tuning guidance lists converting to a columnar format with Snappy as the top Athena performance tip. Together, Parquet plus Snappy delivers the largest reduction in scanned data for selective, single-column queries.
Why the Other Options Are Wrong
Option A moves.csv to JSON and adds Snappy, but JSON is a row-based text format that is typically larger than CSV, so it can make things worse rather than better. Option B compresses the existing.csv files with Snappy, which is a genuine improvement over plain CSV but leaves the row-oriented layout intact, so every column is still read for a one-column query. Option D uses gzip on.csv, which achieves similar row-format compression plus the downside that gzip files are not splittable in the same way, limiting parallelism. None of B, C and D alternatives preserve CSV while changing compression alone can match Parquet's columnar pruning gains, which is why C dominates.
Community Comment Notes
Consensus in the comments is unanimous behind option C, with milofficial joking that "If the exam would only have these kinds of questions everyone would be blessed." TonyStark0122 spells out the mechanism, noting Parquet is a columnar format that enables column pruning and predicate pushdown — precisely the hint embedded in the question's single-column query pattern. wa212 and GabrielSGoncalves both point to the AWS Big Data blog on the top 10 performance tuning tips for Amazon Athena, and k350Secops and d8945a1 repeat that Parquet with Snappy gives the most significant gain because queries select a specific column.
Official Reference
https://aws.amazon.com/blogs/big-data/top-10-performance-tuning-tips-for-amazon-athena/
This link opens the official vendor documentation in a new tab.
Exam Strategy
When an Athena question mentions slow queries over .csv, .json or other text files, look for the answer that changes the file format to a columnar one (Parquet or ORC) combined with Snappy compression — compression alone is never the 'MOST' improvement. Also treat phrases like 'queries select a specific column' as a direct hint toward columnar storage and predicate pushdown.
Frequently Asked Questions
Why isn't compressing the .csv files with Snappy or gzip enough for Athena?
Why is JSON with Snappy worse than Parquet with Snappy here?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 8 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 8
-
milofficial 👍 11 Answered CIf the exam would only have these kinds of questions everyone would be blessed
-
TonyStark0122 👍 6C. Change the data format from .csv to Apache Parquet. Apply Snappy compression. Explanation: Apache Parquet is a columnar storage format optimized for analytical queries. It is highly efficient for query performance, especially when queries involve selecting specific columns, as it allows for column pruning and predicate pushdown optimizations.
-
wa212 👍 2 Answered Chttps://aws.amazon.com/jp/blogs/news/top-10-performance-tuning-tips-for-amazon-athena/
-
k350Secops 👍 1 Answered Cswitching to Apache Parquet format with Snappy compression offers the most significant improvement in Athena query performance, especially for queries that select specific columns
-
GabrielSGoncalves 👍 1 Answered CC is the way to do It based on best practices recommended by AWS (https://aws.amazon.com/pt/blogs/big-data/top-10-performance-tuning-tips-for-amazon-athena/)
Show 3 more comments
-
d8945a1 👍 1 Answered CParquet is columnar storage and the question specifies that users performs most queries by selecting a specific column.
-
Scotty_Nguyen 👍 1 Answered CC is correct
-
Alcee 👍 1C easy
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All DEA-C01 Questions
Access 100 questions with complete answers and detailed explanations.
View Full DEA-C01 Practice Test →