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 →
- CloudWatch metrics:
CPUUtilization,ReadIOPS/WriteIOPS,ReadLatency,DiskQueueDepth,FreeableMemory,DatabaseConnections, andBurstBalanceorCPUCreditBalanceon burstable or gp2 storage. - Performance Insights / CloudWatch Database Insights: top SQL by load and wait events (
IO:DataFileRead,Lock:transactionid). - Enhanced Monitoring for OS-level detail at 1–60 s granularity.
- Enable
pg_stat_statementsand the slow query log (log_min_duration_statement = 500). - 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.
More on Cloud Monitoring, Incidents and Migrations
A new AWS workload uses EC2, an ALB and RDS, with only CloudWatch available. Which alarms do you create first?BeginnerThe CloudWatch bill jumped from $2k to $15k a month. How do you find and cut the cost?IntermediateYour company has 50 AWS accounts. How do you get one monitoring view?IntermediateYour team uses Prometheus and Grafana, but RDS, SQS and ALB metrics live only in CloudWatch. How do you unify?IntermediateHow do you monitor a fleet of AWS Lambda functions?BeginnerFor a new EKS cluster, should you use CloudWatch Container Insights or the Prometheus stack?Intermediate