Analytics

Amazon Athena

Serverless interactive query service that analyzes data in Amazon S3 using standard SQL.

How it works

Amazon Athena is a serverless interactive query service that lets you analyze data in Amazon S3 using SQL without managing a server cluster. Athena can use table and partition definitions in the AWS Glue Data Catalog. Columnar formats such as Parquet and appropriate partitioning can reduce the amount of data scanned by a query.

When to use it

Choose it when the requirement is ad hoc SQL on data already stored in S3.

Real-world example

A security team stores access logs in S3 and creates an Athena table partitioned by date. Analysts use SQL to find suspicious requests within a date range, specifying the partition in the query predicate.

Key facts

  • In its per-query pricing mode, charges depend on data scanned; Parquet and partitioning can reduce scanning
  • Athena Federated Query executes SQL across relational, NoSQL, and custom data sources via Lambda connectors
  • Integrates natively with AWS Glue Data Catalog for central table schemas and partition metadata

Common pitfall

Scanning large CSV or JSON datasets without using partitions can slow queries and increase costs. In the per-query pricing mode, charges depend on the amount of data scanned.

Often confused with

Amazon Redshift — Redshift is a data warehouse for analytical workloads, while Athena is serverless for ad hoc S3 queries.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Keywords you will see in SAA-C03 questions

  • serverless interactive queries
  • query S3 without provisioning clusters

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning