Interview Prep/SRE & Reliability/Backups, DR & Runbook Automation

You restored an RDS instance to a point in time, but the application cannot connect.

IntermediateTroubleshootingBackups, DR & Runbook Automation
Answer

Likely causes → A point-in-time restore creates a new instance with a new endpoint, and it may get the default security group, parameter group or subnet group rather than the original ones.

Diagnose →

aws rds describe-db-instances --db-instance-identifier orders-pitr \
  --query 'DBInstances[0].{endpoint:Endpoint.Address,sgs:VpcSecurityGroups,pg:DBParameterGroups}'

Fix → Attach the correct security groups and parameter group, then point the application to the new endpoint (update a Route 53 CNAME or the secret holding the host), or rename instances to swap endpoints.

Prevent → Script PITR in the runbook with all parameters, and use a DNS name the application resolves instead of raw endpoints.

All SRE & Reliability questions Roadmap: Backup & disaster recovery

More on Backups, DR & Runbook Automation