The AWS Data Stack

Build data platforms on AWS with S3, Glue, Athena, EMR, Redshift, Kinesis, MSK, Lambda, Step Functions and Lake Formation.

Intermediate · about 10 hours · difficulty 3/5

Learn first: Cloud Fundamentals for Data Engineers, PySpark DataFrames

AWS has the largest market share and is the most requested cloud in Indian data engineering job descriptions. Learn the core data services and how they fit together.

Storage and catalog

  • S3: the data lake.
  • Glue Data Catalog: a Hive-compatible metastore of tables over S3, used by Athena, EMR, Redshift Spectrum and Glue jobs.
  • Lake Formation: fine-grained permissions on lake tables.

Processing

  • AWS Glue: serverless Spark (and Python shell) jobs, crawlers that infer schemas, and Glue Studio.
  • Amazon EMR: managed Spark, Hive, Trino and Flink clusters, also available serverless.
  • Athena: serverless SQL (Trino-based) over S3, pay per TB scanned; supports Iceberg tables.
  • Lambda: small event-driven functions, such as triggering on a new S3 file.

Warehousing and streaming

  • Redshift: the warehouse (covered earlier).
  • Kinesis Data Streams and Firehose: managed streaming and delivery to S3 or Redshift.
  • Amazon MSK: managed Kafka.

Orchestration

MWAA (managed Airflow) and Step Functions (state machines for serverless workflows).

A reference architecture

Source databases via DMS or Debezium, raw files to S3, Glue or EMR Spark to Iceberg tables, catalogued in Glue, queried by Athena or loaded into Redshift, orchestrated by MWAA, with Lake Formation for access control.

Pitfalls

  • Glue crawlers inferring wrong schemas on messy data; define schemas explicitly for important tables.
  • EMR clusters left running.
  • Athena queries over unpartitioned CSV costing far more than over partitioned Parquet.

You are ready to move on when you can land files in S3, catalog them with Glue, transform them with a Glue or EMR Serverless Spark job into partitioned Parquet or Iceberg, and query them with Athena.

Key concepts

  • S3 as the data lake
  • Glue Data Catalog and crawlers
  • Glue ETL jobs
  • Athena
  • EMR and EMR Serverless
  • Kinesis and MSK
  • Lambda and Step Functions
  • MWAA
  • Lake Formation

Other options for this step

  • The Google Cloud Data Stack: Build data platforms on Google Cloud with Cloud Storage, BigQuery, Dataflow, Dataproc, Pub/Sub, Cloud Composer and Dataplex.

Mini project

Build a small AWS pipeline within free tier limits: upload CSVs to S3, trigger a Lambda that converts them to Parquet, catalog the output with Glue, and query it with Athena. Record cost per query and tear everything down afterwards.

Check yourself

Why does converting CSV to partitioned Parquet reduce Athena costs, and roughly by how much?

Free resources