Interview Prep/AWS/S3, RDS and DynamoDB

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 →

  1. App must reconnect: use the endpoint DNS name, never an IP
  2. Set low DNS TTL awareness and connection retry
  3. Check events: aws rds describe-events --source-type db-instance --source-identifier mydb
  4. Test failover: aws rds reboot-db-instance --db-instance-identifier mydb --force-failover
  5. 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).

aws All AWS questions Roadmap: AWS core services

More on S3, RDS and DynamoDB