Interview › Databases & Caching
How do you perform a major version upgrade of RDS with minimal downtime?
Databases & Caching · Basic level
Answer
For a major RDS upgrade, I avoid untested in-place changes on critical systems. I prefer blue/green deployment, logical replication, DMS, or a replica-style approach so most upgrade work and validation happens away from production before a controlled cutover.
Technical explanation
Major upgrades can change query plans, parameters, extensions, authentication behavior, reserved words, and client compatibility.
Blue/green reduces risk by creating a synchronized green environment where the new version can be tested before switchover.
Rollback must be designed before cutover; after writes hit the new version, rollback may require restore or reverse migration.
Hands-on example
Upgrade runbook:
1. Restore prod snapshot to staging and upgrade it.
2. Run app regression, migrations, batch jobs, and top SQL comparisons.
3. Create blue/green or logical target.
4. Freeze schema changes.
5. Cut over during approved window.
6. Monitor p95 latency, DB load, locks, error rate, and slow queries.
7. Keep old environment read-only until rollback window expires.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Databases & Caching interview questions
- What is an RDS option group?
- What is an RDS parameter group, and give an example of a parameter you would tune?
- What is a blue-green deployment for RDS, and how does it reduce upgrade risk?
- What is the backup retention period, and what is point-in-time recovery?
- What is the difference between automated backups and manual snapshots in RDS?
- Can a read replica be in a different region, and why would you do that?
- When would you use a read replica, and can it become a standalone database?
- How do you monitor RDS performance (CloudWatch, Performance Insights, Enhanced Monitoring)?