Athena lets you run SQL queries straight against data in S3 — no database to load, no servers to run. You point it at your files, define a table (usually via the Glue Data Catalog), and query. You pay per query, based on data scanned.
What the Data Engineer exam tests
Know Athena is serverless and queries S3 in place, uses the Glue Data Catalog for tables, and — the money detail — that converting to a columnar format like Parquet and partitioning slashes the data scanned, cutting both cost and runtime.
Test yourself
An analyst wants to run occasional SQL queries on log files in S3 without setting up or paying for a running database. What’s the best fit?
- Amazon Redshift
- Amazon Athena
- Amazon RDS
- Amazon EMR
👉 Click to reveal the answer & explanation
Correct answer: B. Athena is serverless, queries S3 directly, and charges only per query — ideal for occasional analysis. Redshift (A) and RDS (C) mean provisioning something you pay for continuously; EMR (D) is heavier cluster-based processing.
Related topics
AWS Glue · Amazon Redshift · Kinesis Data Streams
Athena performance and cost exam traps
- Partitioning: organize data by commonly filtered columns (often date) so queries can skip irrelevant partitions.
- Columnar formats: Parquet or ORC can reduce bytes scanned compared with repeatedly scanning large text files.
- Small files: a very large number of tiny objects can hurt query efficiency; compact files when appropriate.
- Catalog vs query engine: the Glue Data Catalog stores table metadata; Athena executes SQL against the underlying data.
- Cost clue: Athena query charges are commonly based on data scanned, so filter columns and partitions early and avoid
SELECT *when unnecessary.
Quick scenario: Daily log queries are slow and expensive because every query scans all dates. Store logs in date-based partitions and query only the required date range; use a columnar format when the workload supports it.
Build confidence for AWS Data Engineer Associate
Move beyond memorizing facts. Practice with original, scenario-based questions and clear explanations that help you understand why each answer is right or wrong.
Original practice questions. No dumps. No shortcuts.