Analytics Services
Overview
Analytics is the process of turning raw data into insight. AWS provides services for each stage: collecting data, storing it in a data lake, preparing (ETL) it, querying it and visualising the results.
Imagine a newspaper. Reporters gather stories (Kinesis streams data in), editors store and file them (S3 data lake), a copy desk cleans them up (Glue), researchers search the archive (Athena) and the design team turns numbers into charts (QuickSight).
You do not need to build pipelines for the Cloud Practitioner exam. You need to know the main analytics services and the single sentence that identifies each.
Key Concepts
- Amazon Athena queries data in S3 with standard SQL, serverless, paying per data scanned.
- AWS Glue is a serverless ETL (extract, transform, load) and data catalog service.
- Amazon Kinesis collects, processes and analyses real-time streaming data (Data Streams, Data Firehose, Managed Service for Apache Flink).
- Amazon EMR runs big data frameworks such as Hadoop and Spark on managed clusters.
- Amazon QuickSight is business intelligence: dashboards and visualisations with pay-per-session pricing.
- Amazon OpenSearch Service provides search, log analytics and observability; Amazon MSK is managed Apache Kafka.
- AWS Lake Formation simplifies building and securing a data lake; Amazon Redshift is the data warehouse.
- Amazon S3 is the usual storage layer for a data lake, with data stored in open formats like Parquet.
Detailed Notes
The analytics pipeline
| Stage | Question | AWS services |
|---|---|---|
| Ingest | How does data arrive? | Kinesis Data Streams, Firehose, MSK, DMS, Snow family |
| Store | Where does it live? | S3 data lake, Redshift |
| Process / prepare | How is it cleaned and transformed? | Glue, EMR |
| Query | How do we ask questions? | Athena, Redshift, OpenSearch |
| Visualise | How do people see results? | QuickSight |
| Govern | Who can access what? | Lake Formation |
Service cheat sheet
| Service | One-liner | Serverless? |
|---|---|---|
| Athena | SQL queries directly on S3 data | Yes |
| Glue | ETL jobs and Data Catalog | Yes |
| EMR | Managed Hadoop/Spark clusters | EMR Serverless option |
| Kinesis Data Streams | Real-time stream ingestion | On-demand mode |
| Kinesis Data Firehose | Load streams to S3, Redshift, OpenSearch | Yes |
| Redshift | Petabyte-scale data warehouse | Serverless option |
| QuickSight | Dashboards and BI | Yes |
| OpenSearch Service | Search and log analytics | Serverless option |
Batch versus streaming
- Batch processing handles data in large chunks on a schedule (nightly reports) - Glue, EMR, Athena.
- Streaming processes data continuously as it arrives (clickstreams, IoT) - Kinesis, MSK.
Athena example
You do not load data first; you define a table over files in S3 and query it.
SELECT status, COUNT(*) AS hits
FROM web_logs
WHERE year = '2025' AND month = '06'
GROUP BY status
ORDER BY hits DESC;
Athena charges by the amount of data scanned, so partitioning and columnar formats (Parquet) reduce cost and speed up queries.
aws athena start-query-execution \
--query-string "SELECT count(*) FROM web_logs" \
--query-execution-context Database=analytics \
--result-configuration OutputLocation=s3://my-athena-results/
Data lake versus data warehouse
| Data lake (S3) | Data warehouse (Redshift) | |
|---|---|---|
| Data | Raw, any format | Structured, curated |
| Schema | On read | On write |
| Best for | Exploration, ML, diverse data | Fast BI and repeatable reports |
Many organisations use both: raw data lands in S3, curated data is loaded into Redshift, and Redshift Spectrum or Athena queries the lake directly.
Choosing an analytics service by question
| Question | Service |
|---|---|
| Run ad hoc SQL on files in S3 without servers | Athena |
| Run complex, repeatable SQL on structured data at scale | Redshift |
| Prepare and catalogue data | Glue |
| Share dashboards with the business | QuickSight |
| Handle real-time events | Kinesis |
| Build a governed data lake | Lake Formation |
Pay attention to pricing models: Athena charges per data scanned, so compressing and partitioning data (for example Parquet) lowers cost.
Security and governance
Analytics data often contains sensitive information. Use IAM, KMS encryption, Lake Formation permissions and Macie for discovery, and keep processing in private networks where possible.
Real World Example
A ride-sharing company streams trip events through Kinesis Data Streams and delivers them with Firehose to an S3 data lake. Glue crawlers catalogue the data, and analysts use Athena to ask ad-hoc questions without managing servers.
Operations managers watch live dashboards in QuickSight, and a nightly EMR Spark job calculates driver incentive scores.
Architecture Diagram
- 1Applications and devices emit events into Kinesis.
- 2Data lands in S3, the central data lake.
- 3Glue catalogues and transforms data for analysis.
- 4Athena queries it with SQL and QuickSight visualises the results.
Best Practices
- ✓Store data in S3 using Parquet and partitions to cut Athena cost.
- ✓Use Lake Formation for fine-grained data lake permissions.
- ✓Choose serverless analytics where possible to avoid cluster management.
- ✓Encrypt data lakes with KMS and block public access.
- ✓Separate raw, curated and presentation data zones.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "SQL on data in S3" = Athena; "ETL" = Glue.
- "Real-time streaming data" = Kinesis; "Hadoop/Spark" = EMR.
- "Dashboards / business intelligence" = QuickSight.
- "Data warehouse" = Redshift; "data lake governance" = Lake Formation.
Finished this lesson?
0 of 43 lessons done · 0% of the course

