Database Monitoring, Troubleshooting, and Diagnostics Questions

Observing and fixing databases in production: health checks, metrics and alerting, and diagnosing common failures like slow queries, lock contention, replication lag, resource exhaustion, and data-integrity incidents such as duplicate keys or lost updates after a crash or migration. Covers a systematic troubleshooting method under incident pressure. Tests operational instincts distinct from design knowledge.

HardTechnical
31 practiced

A recent migration inadvertently caused write amplification and IOPS spikes on your primary database, and performance has degraded severely. Walk through how you'd quickly diagnose the root cause, what immediate steps you'd take to protect the primary from further damage, and how you'd confirm your mitigation actually worked.

HardTechnical
35 practiced

Intermittent P99 write latency spikes are impacting global users, and the spikes seem to correlate with heavy analytics jobs that run hourly. Design a methodical approach to isolate the root cause: what instrumentation and sampling would you add, how would you validate that the analytics jobs are actually causing the spikes rather than just coinciding with them, and how would you decide which mitigation to reach for once causality is confirmed?

MediumTechnical
34 practiced

Your database is intermittently hitting its connection limit and starting to refuse new connections. Walk through how you'd figure out whether this is a connection leak, a genuine traffic spike, or pool starvation from a few slow queries hogging connections, and what you'd do immediately to relieve the pressure while you find the real cause.

EasyTechnical
35 practiced

You see frequent 'authentication failed' entries in the database logs. Outline step by step how you'd diagnose the connection/authentication problem across the application, the connection pooler, the network, and the database itself, including the commands or queries you'd use at each layer and how you'd narrow down which layer is actually at fault.

MediumTechnical
40 practiced

A query is slow and you need to figure out whether it's CPU-bound or I/O-bound before you can pick the right fix. Which database-level and OS-level signals would you pull together to make that call, and how would you combine them into a confident diagnosis rather than a guess?

Unlock Full Question Bank

Get access to all 29 Database Monitoring, Troubleshooting, and Diagnostics interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.