Interview › Databases & Caching
How do you plan capacity and storage autoscaling for a growing RDS database?
Databases & Caching · Advanced level
Answer
For RDS capacity, I plan storage, IOPS, throughput, CPU, memory, connections, WAL/binlog growth, backup/restore time, and data growth. Storage autoscaling is useful but does not replace forecasting and schema/data lifecycle work.
Technical explanation
RDS storage autoscaling can prevent out-of-space incidents but does not shrink storage.
Growth affects backup time, restore time, vacuum, indexes, migrations, and query plans.
Capacity planning should forecast storage, IOPS, throughput, CPU, memory, connections, and logs.
Hands-on example
Forecast:
Free storage = 500 GB
Growth = 20 GB/day
Days remaining = 25Threshold = 45 days, so act now.
SQL:
SELECT relname, pg_size_pretty(pg_total_relation_size(oid)) FROM pg_class WHERE relkind = 'r' ORDER BY pg_total_relation_size(oid) DESC LIMIT 20;
Final Revision ChecklistAnswer the first section in 60 to 90 seconds.
Use hands-on examples to prove production experience.
Mention monitoring, rollback, and validation for every risky change.
Tie caching answers to consistency and failure modes.
Tie RDS answers to HA, backups, performance, and safe operations.
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
- How do you test a Redis or database failover without impacting users?
- What is the blast radius of a cache outage, and how do you make the app degrade gracefully?
- How do you handle cache warming after a restart or failover?
- How do you decide what to cache and what not to cache?
- How would you use Redis for distributed locking, and what are the caveats?
- How would you use Redis for rate limiting?
- What is the difference between Redis as a cache and Redis as a primary datastore?
- Why are some Redis commands (KEYS, FLUSHALL) dangerous in production?