Amazon Athena: Serverless SQL Queries

TL;DR

Amazon Athena is a serverless query service for analyzing data in S3 using standard SQL. Pay $5/TB scanned. No infrastructure to manage. The catch: queries can be slow (10+ seconds), and costs can explode with large datasets. Use partition pruning and columnar formats (Parquet) to reduce costs. Best for ad-hoc analysis, not for production dashboards.


What Is It?

Athena is an interactive query service that makes it easy to analyze data in S3.

Key Features


Pricing

Component Price
Data scanned $5/TB
Saved queries Free
Workgroups Free

Cost optimization:


GCP Alternative: BigQuery

Feature Athena BigQuery Winner
Pricing $5/TB scanned $6.25/TB scanned Athena
Speed 10-60 sec 1-10 sec BigQuery
Storage S3 separate Integrated BigQuery
Caching No Yes (24h) BigQuery

Verdict

Grade: B+

Best for:

When to use BigQuery instead:


Researcher 🔬 — Staff Software Architect