Volume 12 · Chapter 9 — System Design Case Studies

Case Study: Data Analytics and Big Data Pipeline

Goutham Mayaluri 4 min read AWSCloudSystem Design

9.1 The Problem and Requirements

A bank needs to analyze huge volumes of data - transactions, clickstreams, logs - for business intelligence, regulatory reporting, and fraud analytics, ingesting streaming and batch data, storing it cost-effectively, processing it at scale, and letting analysts query and visualize it. Thisanalytics/big-datascenario exercises the AWS analytics stack (Kinesis, S3 data lake, Glue, Athena, EMR, Redshift, QuickSight, Lake Formation) that the earlier volumes only touched.

9.2 The Data Lake Architecture

The pattern is adata lake on S3as the central, durable, cheap store for all data in open formats, with processing layered around it.Ingest: streaming data via Kinesis Data Streams / Firehose (Firehose delivering to S3 with no code) and batch via DataSync/DMS.Store: S3 with lifecycle tiering (hot → Glacier) and partitioning for query efficiency.Catalog: AWSGluecrawlers discover schemas into the Glue Data Catalog, and Glue ETL jobs transform data.Query/process: Athena (serverless SQL directly on S3), EMR (Spark/Hadoop for heavy processing), and Redshift (data warehouse for BI).Visualize: QuickSight dashboards. The exam pattern is this ingest → store (S3 lake) → catalog (Glue) → query (Athena/EMR/Redshift) → visualize (QuickSight) pipeline.

flowchart LR
  Stream[Kinesis / Firehose] --> Lake[(S3 data lake - open formats, tiered)]
  Batch[DataSync / DMS] --> Lake
  Glue[Glue crawlers + ETL -> Data Catalog] --> Lake
  Lake --> Athena[Athena - serverless SQL on S3]
  Lake --> EMR[EMR - Spark/Hadoop heavy processing]
  Lake --> RS[Redshift - data warehouse + Spectrum]
  Athena & RS --> QS[QuickSight - dashboards]
  LF[Lake Formation - central permissions] -.governs.-> Lake

9.3 Choosing the Processing and Query Engines

The exam tests choosing among the query/processing options.Athena: serverless, pay-per-query SQL directly on S3 - for ad-hoc queries and occasional analysis without infrastructure (ideal for querying logs and the lake).EMR: managed Hadoop/Spark clusters for large-scale, complex, or custom processing and machine learning - when you need heavy transformation or frameworks beyond SQL.Redshift: a provisioned/serverless data warehouse for fast, repeated, complex BI queries over structured data at scale, with Spectrum to query S3 directly.Glue: serverless ETL and cataloging. The mapping: Athena for serverless ad-hoc SQL on S3, EMR for big-data frameworks/heavy processing, Redshift for the BI warehouse, Glue for ETL/catalog. Match by query pattern, scale, and whether you need a warehouse.

9.4 Governance and Cost

Lake Formationcentralizes data-lake security - fine-grained (table/column/row-level) permissions across the analytics services from one place, essential for a bank governing sensitive data.Costis controlled by the serverless-and-tiered design: S3 lifecycle tiering makes storing years of data cheap, Athena/Firehose/Glue/Redshift-Serverless charge per use (no idle clusters), partitioning and columnar formats (Parquet) cut query cost by scanning less, and EMR uses Spot for transient processing. Security: encryption everywhere with KMS, and Macie classifying sensitive data in the lake. This governed, cost-optimized, serverless-leaning analytics platform is exactly the professional-level big-data design the certification targets.

9.5 Banking Production Notes

The bank streams transactions and logs through Firehose into an S3 data lake (tiered, partitioned, Parquet), catalogs them with Glue, and serves three consumers: analysts run ad-hoc Athena SQL over the lake, data scientists run Spark on EMR (Spot) for fraud models, and BI runs on Redshift with Spectrum querying the lake, all visualized in QuickSight. Lake Formation enforces column-level access to sensitive fields, Macie classifies PII, and everything is KMS-encrypted. Regulatory reports are generated from the warehouse. This ingest-store- catalog-query-visualize pipeline, governed and cost-optimized, is the canonical analytics architecture the exam expects.

9.6 Chapter Revision Notes

  • Data lake on S3 (cheap, durable, open formats, tiered/partitioned) is the center; ingest via Kinesis/Firehose (streaming) and DataSync/DMS (batch).
  • Glue crawlers/ETL catalog and transform; query with Athena (serverless SQL on S3), EMR (Spark/Hadoop heavy processing), Redshift (BI warehouse + Spectrum); visualize with QuickSight.
  • Choose: Athena (ad-hoc serverless SQL), EMR (big-data frameworks/heavy processing), Redshift (repeated complex BI at scale), Glue (ETL/catalog).
  • Lake Formation centralizes fine-grained (column/row) data-lake permissions; Macie classifies sensitive data; KMS encrypts.
  • Cost control: S3 tiering, serverless per-use engines, columnar/partitioned data (Parquet), Spot for EMR.