A company runs a production Cloud SQL for PostgreSQL instance used by a web application. The instance experiences intermittent latency spikes during peak hours. You need to diagnose the cause without downtime. Which tool should you use first?
Trap 1: Use Database Migration Service to failover to a read replica.
Failover is for availability, not diagnosing latency.
Trap 2: Use gcloud sql instances describe to check instance configuration.
This command shows metadata, not real-time performance.
Trap 3: Use VPC Flow Logs to analyze network traffic.
VPC Flow Logs capture network flows, not database query performance.
- A
Use Database Migration Service to failover to a read replica.
Why wrong: Failover is for availability, not diagnosing latency.
- B
Use Cloud SQL Insights to analyze query performance and identify slow queries.
Cloud SQL Insights provides query-level performance diagnostics without downtime.
- C
Use gcloud sql instances describe to check instance configuration.
Why wrong: This command shows metadata, not real-time performance.
- D
Use VPC Flow Logs to analyze network traffic.
Why wrong: VPC Flow Logs capture network flows, not database query performance.