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 →
- Configure notifications on
s3:ObjectCreated:*to an SQS queue - Lambda or ECS workers poll the queue
- Add a DLQ with
maxReceiveCount5 - Use EventBridge instead for multiple consumers and filtering
- 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.
More on S3, RDS and DynamoDB
You need to host a static website with HTTPS and low latency worldwide. Which services do you use?BeginnerUploaded files in your bucket must be deleted after 90 days and old versions after 30. How do you do that?BeginnerSomeone deleted objects from a versioned bucket. How do you recover and prevent repeats?IntermediateMillions of small objects are being uploaded and S3 returns 503 Slow Down. What do you do?IntermediateLarge 50 GB files upload slowly from remote offices to S3. How do you speed it up?IntermediateDesign a cross-region DR strategy for a critical S3 bucket with a 15-minute RPO.Advanced