Capture Changes with DynamoDB Streams and Process Them in a Lambda Consumer

Advanced · 45 minutes · 5 tasks, checked automatically · 100 points

In this advanced lab you will build a complete change-data-capture (CDC) pipeline entirely on the local AWS emulator. You will create a DynamoDB table with Streams enabled, write a Python Lambda function that reads stream records and writes a summary to an S3 bucket, wire the stream as an event-source mapping to the Lambda, and then drive real inserts and updates into the table to prove the pipeline works end-to-end. By the end you will understand how DynamoDB Streams expose ordered, per-item change logs and how Lambda consumers process those records in micro-batches.

What you’ll learn

How this lab works

  1. Start the lab: One click starts an emulated cloud on your computer, with the cloud’s own CLI ready: no account and no bill.
  2. Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
  3. Check your work: Check my work reads the emulated cloud’s resources and says, task by task, what passed and what to fix.
  4. Finish and keep going: 100 points, your progress saved, and the next lab to try.

What it runs on

What you need

Topics: dynamodb, dynamodb-streams, lambda, cdc, event-driven, s3, iam, python, streaming

Create a free account to start this lab.

Keep going