AWS Analytics Services
Athena, Kinesis, Glue, Amazon Quick (formerly QuickSight), EMR, OpenSearch Service, MSK, Data Exchange and Redshift - which analytics tool fits which data job.
What is it?
Analytics turns raw data into answers. AWS has a managed service for each stage: collecting and streaming data, storing and transforming it, querying it and visualising it. You don't run the servers.
- Amazon Athena: run standard SQL directly on files in S3 with no servers; you pay per amount of data scanned.
- Amazon Kinesis: collect and process real-time streaming data. Data Streams ingests and stores streams, Data Firehose delivers streams to S3, Redshift or OpenSearch, and Managed Service for Apache Flink analyses streams with SQL or code.
- Amazon MSK (Managed Streaming for Apache Kafka): a managed Kafka cluster for teams already using Kafka.
- AWS Glue: serverless ETL (extract, transform, load) with a Data Catalog that stores table definitions so Athena, Redshift and EMR can find your data.
- Amazon EMR: managed big data clusters running Apache Spark, Hadoop, Hive and Presto for large batch processing.
- Amazon Redshift: a managed data warehouse for fast SQL analytics over large structured data, using columnar storage.
- Amazon OpenSearch Service: search, log analytics and dashboards on top of OpenSearch.
- Amazon Quick (formerly Amazon QuickSight, briefly Quick Suite): business intelligence; build interactive dashboards and charts, with ML insights and natural-language questions about your data.
- AWS Data Exchange: find, subscribe to and use third-party datasets in the cloud.
Name changes to recognise:
- Amazon Data Firehose was Kinesis Data Firehose.
- Amazon Managed Service for Apache Flink was Kinesis Data Analytics.
- Amazon OpenSearch Service was Amazon Elasticsearch Service.
- Amazon Quick was QuickSight.
Kinesis Video Streams ingests and processes video. Kinesis Data Streams lets several consumers read the same records in real time; Firehose is the simpler, serverless way to just deliver a stream to S3, Redshift or OpenSearch.
More detail on the key services
- Athena is serverless and interactive: point it at CSV, JSON or Parquet files in S3 and pay per query (by data scanned). Its SQL engine is based on Trino (a Presto fork), and it also runs Apache Spark in notebooks. Use it from the console, JDBC/ODBC drivers, CLI and SDKs. It is the usual way to query CloudTrail, load balancer, CloudFront and VPC Flow Logs stored in S3, using tables from the Glue Data Catalog.
- Glue: crawlers discover data and infer schemas, the Glue Data Catalog centralises that metadata for Athena, EMR and Redshift Spectrum, and Glue Studio builds ETL jobs visually.
- AWS Lake Formation helps you build and secure a data lake: a central store that keeps raw data in its native format until needed.
- Redshift is the exam's answer for OLAP and data-warehouse questions (OLTP, meaning transactions, points to RDS or Aurora). It feeds BI tools such as Amazon Quick.
- Amazon Quick is comparable to Tableau or Power BI. Its SPICE in-memory engine speeds up dashboards, and it offers ML insights such as anomaly detection, forecasting and auto-written narratives.
- OpenSearch Service gives powerful search and log analytics. The older Amazon CloudSearch (simpler managed search) and AWS Data Pipeline are closed to new customers; use OpenSearch, and Glue or Step Functions, instead.
A common pattern is a data lake: raw data lands in S3, Glue catalogs and transforms it, Athena or Redshift queries it, and Amazon Quick visualises the results.
Explain like I'm 10
Think of a city water system. Kinesis is the river with a constant flow. S3 is the reservoir. Glue is the treatment plant that labels and cleans the water. Athena is a tap you open for a glass right now. Redshift is a bottled-water warehouse built for big fast orders. Amazon Quick is the control-room dashboard showing levels.
Examples
Query CSV files in S3 with Athena
-- Describe the files once (a table over an S3 prefix)
CREATE EXTERNAL TABLE sales (
order_id string,
country string,
amount double
)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ','
LOCATION 's3://my-analytics-bucket/sales/';
-- Then ask a question with plain SQL
SELECT country, SUM(amount) AS revenue
FROM sales
GROUP BY country
ORDER BY revenue DESC
LIMIT 5;No cluster to launch: Athena reads files in place and bills for bytes scanned, so compressing or partitioning data lowers the cost.
Match the need to the service
Need Service
------------------------------------- ---------------------
SQL on files in S3, no servers Athena
Real-time clickstream ingestion Kinesis Data Streams
Load a stream into S3 automatically Amazon Data Firehose
Existing Kafka applications MSK
Serverless ETL + data catalog Glue
Spark/Hadoop on big datasets EMR
Data warehouse for BI queries Redshift
Log search and dashboards OpenSearch Service
Business dashboards Amazon Quick
Buy third-party datasets Data ExchangeHow it works
Analytics systems separate storage from compute where they can. Data sits cheaply in S3; compute services (Athena, EMR, Redshift Spectrum) read it when needed. Streaming services buffer records in shards or partitions, so consumers read them in order at their own pace.
Glue crawlers scan data, infer its schema and write table metadata to the Data Catalog. Redshift stores data by column across nodes, so aggregating billions of rows is fast. Amazon Quick connects to these sources (and SPICE, its in-memory engine) to render dashboards.
sources ingest store & prepare analyse visualise
+--------+ +-----------+ +-------------+ +-----------+ +-----------+
| apps / |-->| Kinesis / |---->| S3 data lake|-->| Athena |-->| Quick |
| logs / | | MSK / | | + Glue ETL | | Redshift | +-----------+
| IoT | | Firehose | | + Catalog | | EMR |
+--------+ +-----------+ +-------------+ | OpenSearch|
+-----------+Why does it exist?
Big data means data so large or unstructured that traditional databases and tools struggle to move and process it. Companies produce far more than one database can hold or query, and running Hadoop, Kafka and a warehouse by hand needs specialist staff. Managed analytics services let a small team query large data without that burden.
When to use it
- Athena: occasional SQL over S3 data.
- Redshift: heavy, repeated BI workloads.
- Kinesis or MSK: real-time ingestion.
- Glue: ETL and cataloging.
- EMR: Spark/Hadoop jobs.
- OpenSearch: search and log exploration.
- Amazon Quick: dashboards.
- Data Exchange: external datasets.
When not to use it
Don't use Athena or Redshift as an app's transactional database (use RDS or DynamoDB). Don't use EMR for tiny jobs Lambda or Glue could do, or stand up Redshift for a one-off query Athena can answer.
Common mistakes
Using a data warehouse as an application database.
Storing Athena input as large uncompressed CSV, which makes each query scan (and cost) more than needed.
Confusing Kinesis Data Streams (ingest and hold records) with Firehose (deliver them to a destination).
Forgetting Amazon Quick is for visualisation, not for storing or transforming data.
Picking EMR when a serverless option would remove cluster management.
Answering 'RDS' to a data-warehouse or OLAP question; that is Redshift.
Learning old names only: Kinesis Data Firehose, Kinesis Data Analytics, Elasticsearch Service and QuickSight have all been renamed.
Practice exercises
- Easy:
Write a one-line purpose for each of the nine services in this lesson without looking.
- Medium:
Sketch a data pipeline for website clickstream data that ends in a daily dashboard, naming each AWS service in order.
- Medium:
Explain why partitioning or compressing files lowers Athena cost.
- Hard:
A team already runs Kafka producers and consumers on-premises. Compare moving them to MSK versus rewriting for Kinesis.
Interview questions
Exam-style: Which service lets you run SQL queries directly on data in S3 without provisioning servers?
Amazon Athena.
Exam-style: Which service is used to build business intelligence dashboards?
Amazon Quick (formerly Amazon QuickSight).
Exam-style: Which service is a managed data warehouse?
Amazon Redshift.
Exam-style: Which service performs serverless ETL and maintains a data catalog?
AWS Glue.
Exam-style: Which service ingests and processes real-time streaming data?
Amazon Kinesis (Data Streams, Firehose, Managed Service for Apache Flink).
Exam-style: Which service lets you find and subscribe to third-party datasets?
AWS Data Exchange.
Exam-style: Which service runs managed Apache Spark and Hadoop clusters?
Amazon EMR.
Exam-style: A company already uses Apache Kafka and wants a managed service. Which one?
Amazon MSK.
Exam-style: Which service helps build, secure and manage a data lake?
AWS Lake Formation.
Exam-style: Which is the simplest serverless way to load streaming data into S3 or Redshift?
Amazon Data Firehose (formerly Kinesis Data Firehose).
Exam-style: Which service provides search and log analytics, formerly called Elasticsearch Service?
Amazon OpenSearch Service.
What does a Glue crawler do?
It scans data sources, infers their schema and writes table definitions into the Glue Data Catalog so services like Athena can query them.
Exam-style: Which service ingests and processes live video streams?
Amazon Kinesis Video Streams.