Millions of small objects are being uploaded and S3 returns 503 Slow Down. What do you do?
IntermediateScenarioS3, RDS and DynamoDB
Answer
Situation read → Per-prefix request rates (3,500 PUT and 5,500 GET per second) were exceeded.
What I'd do →
- Spread keys across multiple prefixes
- Add retries with exponential backoff and jitter in the SDK
- Batch small objects into larger ones
- Request-rate scale-up is automatic over minutes, so ramp traffic gradually
- Check CloudWatch
5xxErrorsrequest metrics
Why → S3 scales per prefix, so more prefixes means more throughput.
Interview tip → Backoff plus jitter is the universal AWS client answer.
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?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.AdvancedAn analytics team needs query access to 10 TB of logs in S3 without loading a warehouse. What do you propose?Intermediate