✦ Want a lab built just for you? ✦
Request a Lab ↗

Large-Scale Telecom CDR Processing with EMR Serverless and Redshift Spectrum

About this lab

You are a senior data engineer at ConnectTel, a regional telecommunications company with millions of subscribers generating call detail records around the clock. The existing pipeline processes CDRs in a single-threaded Python script that takes over six hours to run and frequently crashes on peak-volume days. Leadership has approved a migration to a distributed processing framework that can handle the scale reliably.

You will configure an EMR Serverless application to run PySpark jobs, write Spark transformations that clean, deduplicate, and aggregate raw CDR files stored in S3, register the output in the AWS Glue Data Catalog, and query the processed data through Redshift Spectrum without loading it into Redshift. You will also implement partitioning by year and month to optimize query performance across terabytes of historical data.

Lab details

  • Level: Advanced
  • Cloud: AWS
  • Domain: Data Engineering
  • Duration: 90 minutes

What you will learn

  • Configure an EMR Serverless application for PySpark workloads
  • Write Spark transformations that clean, deduplicate, and enrich CDR data
  • Partition output data by date for efficient downstream querying
  • Register processed data in the AWS Glue Data Catalog
  • Query large datasets through Redshift Spectrum external tables
  • Compare query performance between partitioned and non-partitioned layouts

Concepts covered

  • Distributed Processing
  • Apache Spark
  • EMR Serverless
  • Glue Data Catalog
  • Redshift Spectrum
  • Data Partitioning

Technologies used

  • Amazon EMR Serverless
  • Apache Spark (PySpark)
  • AWS Glue Data Catalog
  • Amazon Redshift Spectrum

Prerequisites

  • An AWS account with permissions for EMR, S3, Glue, and Redshift
  • Familiarity with Python and SQL
  • Basic understanding of Apache Spark concepts (RDDs, DataFrames, transformations)

Topics

  • AWS
  • EMR
  • Spark
  • PySpark
  • Glue
  • Redshift Spectrum
  • Batch
  • Advanced
  • Data Engineering
  • Telecom