Design a globally available DynamoDB application with active-active writes.
AdvancedScenarioS3, RDS and DynamoDB
Answer
Situation read → Global tables replicate across regions with last-writer-wins conflict resolution.
What I'd do →
- Create the table with streams and add replicas:
aws dynamodb update-table --table-name orders --replica-updates 'Create={RegionName=eu-west-1}' - Route users with Route 53 latency routing
- Design writes to avoid conflicts, such as region-owned items
- Monitor
ReplicationLatency - Use multi-Region strong consistency option only when needed
Why → Replication is asynchronous and conflicts resolve by timestamp, so data modeling prevents lost updates.
Interview tip → Mention idempotent writes.
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