Your RDS primary failed over to the standby. What happened and what must the app do?
IntermediateScenarioS3, RDS and DynamoDB
Answer
Situation read → In Multi-AZ, RDS flips the DNS endpoint CNAME to the standby, usually in 60 to 120 seconds.
What I'd do →
- App must reconnect: use the endpoint DNS name, never an IP
- Set low DNS TTL awareness and connection retry
- Check events:
aws rds describe-events --source-type db-instance --source-identifier mydb - Test failover:
aws rds reboot-db-instance --db-instance-identifier mydb --force-failover - Use RDS Proxy to keep connections stable
Why → The standby is synchronously replicated, so no data is lost but connections drop.
Interview tip → Multi-AZ is for HA, not for read scaling (except the Multi-AZ cluster option).
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