Interview › Databases & Caching
How do you test that an application is compatible before a database major upgrade?
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 a blue-green deployment for RDS, and how does it reduce upgrade risk?
- How do you perform a major version upgrade of RDS with minimal downtime?
- What is an RDS option group?
- How do you monitor RDS performance (CloudWatch, Performance Insights, Enhanced Monitoring)?
- What is an RDS parameter group, and give an example of a parameter you would tune?
- What is Performance Insights, and what does it help you find?
- What are common causes of high RDS CPU, and how do you investigate?
- What is the backup retention period, and what is point-in-time recovery?