About this lab
You are a data engineer at CargoTrack, a logistics startup that manages last-mile deliveries for e-commerce companies. Every time a delivery partner drops off a batch of packages, a shipping manifest file lands in an S3 bucket. Right now a team member manually downloads each manifest, reformats it, and enters the data into a tracking spreadsheet. Your team lead wants you to automate this entire flow so that every new manifest is processed within seconds of arrival.
You will create an S3 bucket with event notifications, write an AWS Lambda function in Python that parses incoming CSV manifests, and store the structured shipment records in a DynamoDB table. You will also add a dead-letter queue for failed processing and verify the end-to-end flow by uploading test manifests and inspecting the resulting DynamoDB items.
Lab details
- Level: Beginner
- Cloud: AWS
- Domain: Data Engineering
- Duration: 60 minutes
- Estimated cloud cost: < $0.01
What you will learn
- Create an S3 bucket with event notifications that trigger on file uploads
- Write a Lambda function in Python that parses CSV files and handles errors
- Store structured data in DynamoDB using batch writes
- Configure a dead-letter queue for failed processing attempts
- Verify end-to-end event-driven processing by uploading test files
Concepts covered
- Event-Driven Architecture
- AWS Lambda
- S3 Event Notifications
- DynamoDB
- Dead-Letter Queues
- Serverless Computing
Technologies used
- Amazon S3
- AWS Lambda
- Amazon DynamoDB
- Amazon SQS
Prerequisites
- An AWS account (free tier covers all resources in this lab)
- Basic Python knowledge
- Familiarity with CSV file formats
Topics
- AWS
- Lambda
- S3
- DynamoDB
- Event-Driven
- Serverless
- Beginner
- Data Engineering
- SQS