Your production Cloud SQL for PostgreSQL database instance is experiencing high CPU utilization caused by heavy analytical reporting queries. You need to offload this read-only query workload from the primary database instance with minimal operational effort. What should you do?
- Create a Cloud SQL read replica and route the analytical reporting queries to the replica instance.Answer
- BMigrate the analytical reporting data to a Cloud Bigtable cluster to execute complex relational SQL join queries.
- CChange the storage class of the primary Cloud SQL instance data disks to Archive Storage.
- DAssign the primitive Owner role to all reporting user accounts to grant elevated execution priority on the database.
Answer
Create a Cloud SQL read replica and route the analytical reporting queries to the replica instance.
Creating a Cloud SQL read replica provides a read-only copy of the primary database. Directing heavy analytical reporting queries to the read replica offloads CPU consumption from the primary instance with minimal operational effort.
Step-by-Step Solution
Key Concept
Cloud SQL Read Replicas for Read Scaling
Estimated Time:1m 0s