Interview Prep/Monitoring & Observability/Cloud Monitoring, Incidents and Migrations

Your RDS PostgreSQL database gets slow every afternoon. What monitoring do you use to find out why?

BeginnerScenarioCloud Monitoring, Incidents and Migrations
Answer

Situation read → You need database load by query and wait event, not only CPU.

What I'd do →

  1. CloudWatch metrics: CPUUtilization, ReadIOPS/WriteIOPS, ReadLatency, DiskQueueDepth, FreeableMemory, DatabaseConnections, and BurstBalance or CPUCreditBalance on burstable or gp2 storage.
  2. Performance Insights / CloudWatch Database Insights: top SQL by load and wait events (IO:DataFileRead, Lock:transactionid).
  3. Enhanced Monitoring for OS-level detail at 1–60 s granularity.
  4. Enable pg_stat_statements and the slow query log (log_min_duration_statement = 500).
  5. Correlate with scheduled jobs or reports running in the afternoon.

Why → Afternoon slowness is often a batch job, credit exhaustion, or lock contention.

Interview tip → Burst credit exhaustion is a classic hidden cause; mention it.

All Monitoring & Observability questions

More on Cloud Monitoring, Incidents and Migrations