AWS · Comparison
Athena vs Redshift vs EMR
Where should I analyse large datasets: Athena on S3, a Redshift warehouse, or EMR clusters?
Decision summary
- Athena: ad hoc or occasional SQL directly on S3, pay per data scanned, nothing to run.
- Redshift: a warehouse for BI dashboards and heavy, repeated SQL by many users, with fast performance on structured data (and Spectrum to reach S3).
- EMR: big-data processing with Spark, Hive, Presto or Hadoop tools, for ETL, machine learning and custom frameworks.
Many data platforms use all three on one S3 data lake with the Glue Data Catalog.
Best fit for each option
Side by side
| Athena | Redshift | EMR | |
|---|---|---|---|
| Best for | Serverless SQL on S3 | Data warehouse and BI | Big-data frameworks |
| Scaling | Automatic, within concurrency quotas | Nodes, Serverless RPUs, concurrency scaling | Cluster scaling, Spot task nodes, or Serverless |
| Performance | Depends on data layout (partitions, Parquet) | Fast on repeated queries over loaded data | Depends on cluster size and job design |
| Operational complexity | None | Low with Serverless; tuning for provisioned | Most: clusters, versions, jobs |
| Cost | Per TB scanned | Node-hours or RPU-hours plus storage | Instance or worker time plus an EMR fee |
Scaling and topology
When to avoid each option
Athena
- Constant, high-concurrency dashboard queries on large data, where scans add up.
Redshift
- Occasional queries, where a warehouse sits idle.
- OLTP workloads.
EMR
- Simple SQL questions that Athena answers without clusters.
Example scenarios
| Situation | Choose | Why |
|---|---|---|
| Investigate a month of CloudTrail logs once. | Athena | No infrastructure, pay only for the scan. |
| 500 analysts use dashboards all day. | Redshift | A warehouse handles high concurrency efficiently. |
| Nightly Spark jobs transform 20 TB of raw data. | EMR | Spark at scale with Spot task nodes. |
Exam cues
- Serverless SQL on S3: Athena. Data warehouse/BI: Redshift. Hadoop/Spark: EMR.
- Serverless ETL: Glue. Query S3 from Redshift: Spectrum.
Service pages
- Amazon Athena · Serverless, interactive SQL queries directly on data in S3, paying per data scanned, with no clusters to manage.
- Amazon Redshift · A managed, petabyte-scale data warehouse for SQL analytics, provisioned or serverless, that can also query data in S3.
- Amazon EMR · Managed big-data frameworks such as Apache Spark, Hive, Presto and HBase, on EC2 clusters, on EKS, or serverless.
Related
Courses and lessons
- Data lakes: S3, AWS Glue, Athena and Lake Formation · AWS Solutions Architect – Associate (SAA-C03) · Members
- Analytics services: EMR, Redshift, OpenSearch and Amazon Quick · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- Amazon Athena · Service
- Amazon Redshift · Service
- Amazon EMR · Service
- AWS Glue · Service
- AWS Lake Formation · Service
- Amazon S3 · Service
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services.