Question 1
Topic: Design innovative, scalable, and highly available cloud database solutions
Skill tested: Sizes Cloud SQL compute and storage using workload metrics and growth projections.
A retailer is moving a PostgreSQL database to Cloud SQL. Its current VM averages 35% CPU but reaches 95% during nightly order reconciliation; the workload is sensitive to query latency during that period. Storage grows by 12% monthly, and the database currently uses 1.2 TB. The business forecasts a doubling of transaction volume within a year. The team wants predictable performance without paying for large idle capacity throughout the day. What is the best initial sizing approach?
Peak workload behavior, not average CPU alone, drives the initial compute choice when reconciliation latency matters. Benchmarking the critical workload and observing CPU, memory, and I/O after deployment helps avoid both under-sizing and unnecessary oversizing. SSD storage is appropriate for latency-sensitive database access, and projected growth requires storage headroom and ongoing monitoring. Average-based HDD sizing risks poor performance at peak; choosing the largest configuration wastes budget and still does not eliminate validation; and automatic storage increases do not replace capacity monitoring or growth planning.