A company is using Cloud SQL for PostgreSQL and wants to improve read scalability for a reporting dashboard that executes complex aggregate queries. The reports can tolerate up to 5 minutes of data staleness. Which two actions should the team take?
Read replicas offload read traffic and can serve stale data with minimal lag.
Why this answer
Creating read replicas in Cloud SQL offloads read traffic from the primary instance, allowing complex aggregate queries to run on replicas without impacting write performance. Since the reports can tolerate up to 5 minutes of staleness, the asynchronous replication lag inherent in Cloud SQL read replicas is acceptable, making this a cost-effective and scalable solution.
Exam trap
Google Cloud often tests the distinction between scaling reads via replicas versus scaling writes or optimizing connections, and candidates mistakenly choose connection pooling or vertical scaling as a solution for read-heavy workloads.