Interview Prep/AWS/S3, RDS and DynamoDB

An S3 bucket receiving PUTs must trigger processing for each file. What is the design?

IntermediateScenarioS3, RDS and DynamoDB
Answer

Situation read → S3 event notifications to SQS or EventBridge, then workers.

What I'd do →

  1. Configure notifications on s3:ObjectCreated:* to an SQS queue
  2. Lambda or ECS workers poll the queue
  3. Add a DLQ with maxReceiveCount 5
  4. Use EventBridge instead for multiple consumers and filtering
  5. Make processing idempotent since events are at-least-once

Why → A queue buffers bursts and decouples upload rate from processing rate.

Interview tip → S3 to Lambda directly is fine for small flows but lacks buffering.

aws All AWS questions Roadmap: AWS core services

More on S3, RDS and DynamoDB