Interview › Databases & Caching
How do you scale an RDS database vertically and what is the downtime impact?
Databases & Caching · Basic level
Answer
Vertical scaling changes the RDS DB instance class to add CPU, memory, or network capacity. It can require downtime or a failover depending on engine, class change, Multi-AZ setup, and whether the change is applied immediately or in a maintenance window.
Technical explanation
Scale-up can buy time but does not fix bad SQL, locks, missing indexes, or connection storms.
Multi-AZ can reduce impact but still requires app reconnect and retry behavior.
Scale-down should be tested because less memory can reduce cache hit ratio and change query behavior.
Hands-on example
Scale-up example:
$ aws rds modify-db-instance --db-instance-identifier orders-prod --db-instance-class db.r7g.2xlarge --apply-immediatelyWatch RDS events, p95 latency, DB load, CPU, free memory, slow queries, and application connection errors during the change.
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 are common causes of high RDS CPU, and how do you investigate?
- What is Performance Insights, and what does it help you find?
- What is connection pooling, and why does it matter for RDS (e.g., RDS Proxy)?
- How do you monitor RDS performance (CloudWatch, Performance Insights, Enhanced Monitoring)?
- What is RDS Proxy, and what problem does it solve?
- What is MVCC, and how does PostgreSQL implement it?
- What is VACUUM in PostgreSQL, and why is autovacuum important?
- What is a blue-green deployment for RDS, and how does it reduce upgrade risk?