SkillSprout
Chapter 5 · Lesson 2
Beginner
5 min read

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

StageQuestionAWS services
IngestHow does data arrive?Kinesis Data Streams, Firehose, MSK, DMS, Snow family
StoreWhere does it live?S3 data lake, Redshift
Process / prepareHow is it cleaned and transformed?Glue, EMR
QueryHow do we ask questions?Athena, Redshift, OpenSearch
VisualiseHow do people see results?QuickSight
GovernWho can access what?Lake Formation

Service cheat sheet

ServiceOne-linerServerless?
AthenaSQL queries directly on S3 dataYes
GlueETL jobs and Data CatalogYes
EMRManaged Hadoop/Spark clustersEMR Serverless option
Kinesis Data StreamsReal-time stream ingestionOn-demand mode
Kinesis Data FirehoseLoad streams to S3, Redshift, OpenSearchYes
RedshiftPetabyte-scale data warehouseServerless option
QuickSightDashboards and BIYes
OpenSearch ServiceSearch and log analyticsServerless 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.

sql
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.

bash
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)
DataRaw, any formatStructured, curated
SchemaOn readOn write
Best forExploration, ML, diverse dataFast 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

QuestionService
Run ad hoc SQL on files in S3 without serversAthena
Run complex, repeatable SQL on structured data at scaleRedshift
Prepare and catalogue dataGlue
Share dashboards with the businessQuickSight
Handle real-time eventsKinesis
Build a governed data lakeLake 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

Serverless analytics pipeline
Architecture
AWS Cloud
Apps / IoT
KinesisIngest
S3 data lake
GlueETL + catalog
Athena
QuickSightDashboards
  1. 1Applications and devices emit events into Kinesis.
  2. 2Data lands in S3, the central data lake.
  3. 3Glue catalogues and transforms data for analysis.
  4. 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