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 = 25

Threshold = 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 Checklist

Answer 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.

Preparing for an interview?

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

← All Databases & Caching questions