An operations team manages a Cloud SQL for PostgreSQL database instance used for live transaction processing. Business analysts frequently execute heavy reporting queries directly against this primary instance, causing CPU utilization spikes that slow down transactional write operations. You need to mitigate the performance impact on transaction processing with minimal operational overhead. Which action should you take?
- Create a read replica of the Cloud SQL instance and configure the reporting queries to connect to the read replica.Answer
- BExport the relational tables daily to Cloud Storage and query the data directly using Cloud Bigtable.
- CChange the storage class of the Cloud SQL database disk to Coldline storage to reduce read latency.
- DEnable a public IP address on the primary Cloud SQL instance to allow analysts to establish direct parallel connections.
Answer
Create a read replica of the Cloud SQL instance and configure the reporting queries to connect to the read replica.
Creating a Cloud SQL read replica offloads analytical read operations from the primary database instance. The read replica receives data updates asynchronously, allowing business analysts to run resource-intensive reporting queries on the replica without impacting the transaction throughput and CPU utilization of the primary database.
Step-by-Step Solution
Key Concept
Cloud SQL Read Replicas for Workload Isolation