DVA-C02

Introduction to Amazon Athena

Serverless SQL queries directly on data stored in Amazon S3.

  • 1 lesson
  • Module quiz

Applications and AWS services write large amounts of data to Amazon S3: logs, exported records, clickstreams and data lake files. Sometimes a developer needs to answer a question about that data, such as which client caused a rise in errors yesterday, without building a database or loading the data anywhere.

Amazon Athena is a serverless query service for this purpose. The developer defines a table that describes files already stored in S3 and then queries them with standard SQL. There is no infrastructure to set up and nothing to load. Athena is charged for the amount of data each query scans, so storing data in columnar formats such as Parquet, compressing it and partitioning it reduce both cost and query time.

Where Athena fits

On the exam, the deciding phrase is usually SQL queries on data in S3 without managing servers. Athena is also the standard way to investigate logs that AWS services deliver to S3, such as AWS CloudTrail and load balancer logs.

How this module is organised

The module has a single lesson, Querying Data in Amazon S3 with Amazon Athena, which explains how tables are defined, how to reduce cost and improve performance, common uses, and how workgroups and the asynchronous API work.

  1. Querying Data in Amazon S3 with Amazon Athena Lesson 1
  2. Practise and review
  3. Test your knowledge 4 questions