logo
AWS Hands-On Lab: SNS Topic, SQS Queue, Lambda Consumer & DLQ Deep Dive
AWS Cloud Bytes

2,443 views

49 likes

Master AWS event-driven architecture in this hands-on lab covering the complete workflow: SNS → SQS ← Lambda, message failures, DLQ handling, and redrive operations.

In this step-by-step demo, you will learn:

🔹 What we build

Create an SNS Topic

Create an SQS Dead Letter Queue (DLQ)

Create the Main SQS Queue

Subscribe Main Queue to the SNS Topic

Create a Lambda function to process Main Queue messages

Update Lambda IAM role for CloudWatch Logs and SQS access

Configure Lambda Trigger for the Main Queue

🔹 What we test

Publish a successful message from SNS → SQS → Lambda

Publish a failure message to simulate Lambda processing errors

Observe:

Failed messages stay in Main Queue

After maxReceiveCount → messages move to DLQ

Demonstrate Redrive from DLQ back to Main Queue

🔹 Bulk Message Test (AWS CLI)

Send 30 messages

15 success payloads

15 failure payloads (Lambda forced failure logic)

Track:

Message movement

Receive count increments

DLQ entries & behavior

🔔 Subscribe for more

LinkedIn Profile: - https://www.linkedin.com/in/bhaweshkumar/

Personal Website: - https://www.bhaweshkumar.com/

Certifications: - https://www.youracclaim.com/users/bhawesh-kumar

Udemy profile: https://www.udemy.com/user/bhawesh-kumar

Instagram: - https://www.instagram.com/awscloudbytes/

Blog: - https://www.ilucidify.com

Git Lab - https://github.com/bhaweshkumar/demo-code/tree/main/sns-sqs-lambda