Lesson 2 of 3 AI, ML and Analytics Services

Identifying AWS Analytics Services from Collection to Visualisation

This lesson explains how AWS analytics services collect, store, process, query and visualise data, from real-time streams to petabyte-scale warehouses.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the analytics service used at each stage that data passes through.
  • Describe how the services fit together in a pipeline from website clicks to a dashboard.

The services at a glance

Analytics services cover each stage that data passes through. To collect streaming data, such as clickstreams, logs and IoT readings, Amazon Kinesis captures and processes it in real time, and Amazon Data Firehose, formerly part of Kinesis, loads it into destinations such as S3 and Redshift. To transform data, AWS Glue provides serverless extract, transform and load (ETL) jobs and a Data Catalog that describes data sets, and Amazon EMR runs big data frameworks such as Apache Spark and Hadoop.

To store and query data, Amazon Athena runs SQL queries directly on data in S3 with no servers, charging for the data scanned, Amazon Redshift is a data warehouse, and Amazon OpenSearch Service provides search and log analytics. To visualise data, Amazon Quick Sight creates business intelligence dashboards and reports. The following table groups the services by function.

CategoryServiceWhat it does
QueryAmazon AthenaServerless SQL directly on S3 data; pay per data scanned
TransformAWS GlueServerless ETL with a Data Catalog of your data sets
Big dataAmazon EMRProcessing with Apache Spark and Hadoop
StreamingAmazon KinesisCollects and analyses real-time streaming data: clickstreams, logs, IoT
WarehouseAmazon RedshiftFast, scalable data warehouse
VisualiseAmazon Quick Sight (formerly QuickSight)Serverless business intelligence dashboards and reports
SearchAmazon OpenSearch ServiceSearch and log analytics

Putting the services together: clickstream to dashboard

An online retailer wants to see, every morning, which products customers viewed and bought the day before. The analytics services fit together to deliver this. Amazon Data Firehose collects the website's click events and delivers them to Amazon S3. AWS Glue catalogues the data so that it can be queried, and transforms it into an efficient format. Amazon Athena runs SQL queries on the data in S3, paying only for the data scanned, and Amazon Quick Sight presents the results as a dashboard for the business team.

If the retailer later needs complex reporting across years of sales data with many concurrent users, Amazon Redshift provides a data warehouse for that workload. If it needs to react to events within seconds, for example to detect fraud, Amazon Kinesis Data Streams processes the stream in real time.

The following diagram shows the data flowing through the analytics services.

Analytics services working together, from clicks to a dashboard. Amazon Data Firehose collects website click events and delivers them to Amazon S3. AWS Glue catalogues and transforms the data. Amazon Athena runs SQL on the data in S3, charging for the data scanned, and Amazon Quick Sight shows the results on a dashboard. Amazon Redshift suits complex reporting over years of data, and Kinesis Data Streams suits reacting within seconds.
Many of these services are serverless and charge for use.
Put in order

From clicks to a dashboard

Exam skills 3.7.2

Put the stages of a clickstream analytics pipeline in order.

Log in to try this activity Interactive activities are free with an account.
Worked example

From website clicks to a dashboard

An online shop wants a dashboard showing which products customers view and buy. The data flows through several analytics services:

StepService
Collect clicks from the website in real timeAmazon Kinesis Data Streams
Deliver the clicks into storageAmazon Data Firehose to Amazon S3
Clean the data and record its structureAWS Glue (ETL and Data Catalog)
Answer ad hoc questions with SQLAmazon Athena, querying S3 directly
Run large, regular reportsAmazon Redshift data warehouse
Show managers the dashboardAmazon Quick Sight

Many of these services are serverless, so the shop pays for what it uses without managing clusters. Athena, for example, charges only for the data each query scans.

Check yourself

Which service runs SQL queries directly on data in Amazon S3?

Show answer

Amazon Athena.

Exam Tips

Remember for the exam

  • Serverless SQL queries directly on S3 data point to Athena.
  • Business intelligence dashboards point to Quick Sight.
  • Real-time streaming data points to Kinesis.
  • Serverless ETL and a data catalogue point to AWS Glue.
  • Big data processing with Spark or Hadoop points to EMR.
  • A data warehouse is Redshift.