← Cloud Practitioner study path

Technology and services · 11 min

AWS analytics services

In this lesson you will learn what a data pipeline is, which AWS analytics service takes care of receiving, storing, cataloging, querying and displaying the data, and how to tell Amazon Athena from Amazon Redshift on the exam.

AWS analytics services take care of turning the data a company generates into answers that someone can look up. For example, an online store records every click, every search and every purchase its customers make, and with analytics its owner can see in a chart how much was sold yesterday or which product was searched for most this week.

To get to that chart, the data has to go through five steps: receiving it, storing it, organizing it, querying it and displaying it. That route is called a data pipeline, and on AWS each step has its service. For example, a customer's click on a shoe is received instantly, stored along with millions of other clicks, organized, counted and finally adds one more view for that shoe among the most viewed products.

What does a data pipeline on AWS look like?

Data pipeline with Amazon Kinesis, Amazon S3, AWS Glue, Amazon Athena and Amazon Quick, and separately Amazon Redshift, Amazon EMR and Amazon OpenSearch Service

In a data pipeline on AWS, the data comes from applications and sensors and goes through five services, one per step:

  • Amazon Kinesis, which receives the data in real time, that is, at the moment it is generated.
  • Amazon S3, which stores the data.
  • AWS Glue, which catalogs and transforms the data.
  • Amazon Athena, which queries the data with .
  • Amazon Quick, which displays the results in .

For example, in the store, Kinesis receives its customers' clicks, S3 stores them, Glue notes what data each file contains, Athena counts how many clicks each product got and Quick shows that count in a chart.

Amazon Kinesis

The AWS services that receive streaming data: Amazon Kinesis Data Streams, Amazon Data Firehose and Amazon Kinesis Video Streams, each with its use

The first step of the pipeline receives data that arrives nonstop, such as clicks on a page, or sensor readings. That kind of data is called streaming data, and Kinesis is the family of AWS services that receives it:

  • Amazon Kinesis Data Streams, which receives and processes data streams in real time so your applications can read them. For example, the store uses it so that one of its programs sees each purchase as it happens and detects if someone buys the same product a hundred times in a minute.
  • Amazon Data Firehose, which delivers real-time streams directly to a destination such as S3, Redshift or OpenSearch, without you having to write an application. For example, the store uses it so that all its clicks end up stored in S3 without programming anything.
  • Amazon Kinesis Video Streams, which receives live video from cameras and other devices. For example, the store's warehouse sends the video from its security cameras.

Which service do you use?

You want your application's logs to arrive in real time in an S3 bucket without writing an application to process them. What do you use?

Amazon S3 as a data lake

The data that Kinesis receives is usually stored in Amazon S3, the AWS object storage service, where each complete file is uploaded and later requested by its name. In S3 the data stays all together and in its original format, without organizing it first, and that place is called a data lake. The S3 documentation lists the data lake as one of the uses of the service. For example, the store keeps the click, search and purchase files in the same bucket just as they arrive, and decides later what questions it will ask them.

AWS Glue

However, millions of files in S3 are no use to a company if nobody knows what is in them. To solve that there is AWS Glue, a data integration service that discovers your data and registers it with its structure in a central catalog. That catalog works like the index of a book: it says what files there are, what columns they have and what type of data goes in each one. For example, Glue goes through the store's purchase files and notes that each one has the date, the product and the price.

Glue also runs extract, transform and load (ETL) jobs, which take the data out of one place, clean it and store it in another. For example, an ETL job at the store takes the purchases, removes the ones that came out duplicated, puts all the dates in the same format and saves the result in another S3 folder.

Amazon Athena

With the data cataloged, Amazon Athena queries it with standard SQL directly in S3. Athena doesn't require you to set up servers, because you just point the service at your data, write the query and pay for the queries you run. That is why it is used when you want to ask some files a question without loading them into a first. For example, the store's owner writes a query to find out how many red shoes were sold in March, Athena reads the files in S3 and gives her the number.

In the pipeline, Athena and Glue are used together: Glue registers what data there is and with what structure, and Athena queries that data. For example, Athena knows the price column exists in the store's purchase files because Glue noted it in its catalog.

Amazon Quick

The last step of the pipeline is Amazon Quick, the AWS service for analyzing data, building dashboards and doing business intelligence, which is using a company's data to make decisions. Quick grew out of Amazon QuickSight, which remains inside Quick under the name Quick Sight and is the visualization part, that is, the part that turns numbers into charts. Besides displaying data, Quick automates tasks and does research from an chat. For example, every Monday the store's owner opens a Quick dashboard with the week's sales by product and decides what to reorder from the supplier.

cloud path tip: if you study with older material, you will find this service under the name Amazon QuickSight.

Match each service with its step

0 of 5 pairs

Tap a service and then its step in the pipeline.

0 of 5 pairs.

Amazon Redshift, Amazon EMR and Amazon OpenSearch Service

Besides the pipeline services, the exam includes three other analytics services:

  • Amazon Redshift, which is a managed data warehouse at the scale of . A data warehouse is a store where you load data that is already organized to analyze it with SQL and with business intelligence tools. You can use Redshift with clusters that you manage or with Redshift Serverless, which doesn't charge while it is idle. For example, a chain of stores loads the sales from all its branches there so its analysts can query them every day.
  • Amazon EMR, which runs managed of frameworks such as Apache Spark and Apache Hadoop, which are programs for splitting a huge calculation across many computers. For example, a bank that has to check billions of transactions uses EMR to split up that work.
  • Amazon OpenSearch Service, which is OpenSearch, a program for searching through large amounts of text, managed by AWS. It is used to search and analyze logs, monitor applications and analyze clickstreams. For example, when the store's website fails, the team searches OpenSearch for the error message among all of the day's logs.

Difference between Athena and Redshift

Athena and Redshift get confused because both use SQL. However, Athena queries the files where they already are and charges per query, while Redshift is a warehouse you load the data into to analyze it constantly and at large scale. For example, if the store only wants to know once a month how much it sold, Athena is enough; if a team of analysts queries the sales all day long, it is better to load them into Redshift.

Athena or Redshift?

0 of 4

Tap the correct column for each case.

  1. Ask a question of files that are already in S3 without loading them into a database

  2. Load the data into a warehouse to analyze it constantly and at large scale

  3. Pay only for the queries you run

  4. A managed, petabyte-scale data warehouse

How do you recognize each service on the exam?

In analytics questions, look in the question for what happens to the data. These are the phrases that point to each service:

  • "Real time" or "streaming", which point to Kinesis, and to Data Firehose if it also says "deliver to S3 without writing code".
  • "Catalog" or "ETL", which point to Glue.
  • "Query data in S3 with SQL without servers", which points to Athena.
  • "Dashboards", "visualize" or "business intelligence", which point to Quick.
  • "Data warehouse", which points to Redshift.
  • "Spark" or "Hadoop", which point to EMR.
  • "Search logs", which points to OpenSearch Service.

For example, if a question says that a school wants its principals to see each class's grades in charts, the words "see in charts" point to Quick.

cloud path tip: if you use an account with the new AWS experience, Athena, Glue and Amazon Quick (in its Free and Plus plans) are included in the free plan, while Kinesis, Data Firehose, Redshift and EMR are only available with the paid plan.

Review question

A marketing team has the sales files from the last five years in Amazon S3. Once a month it wants to answer questions with SQL, without setting up or managing servers and paying only when it queries. Which service does it use?

Next