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
43 practiced

On a SQL Server instance, you're seeing heavy PAGELATCH_UP waits on tempdb under a parallel build-and-insert workload. Explain the root causes, how you'd diagnose whether this is allocation contention or latch contention, and what concrete mitigations you'd consider, spanning tempdb configuration, engine-level options, and schema or application changes.

MediumTechnical
43 practiced

On a SQL Server instance, your transaction log is growing unexpectedly large and causing disk pressure. Explain how you'd diagnose the root cause, which DMVs or commands you'd run to investigate, and describe safe steps to reduce the log size without risking data loss.

MediumSystem Design
35 practiced

You're scheduling a major index-rebuild and maintenance window on a production database that stakeholders depend on. Design the monitoring and alerting you'd put in place to track progress and catch user-visible impact in real time, and describe the rollback protocol and stakeholder-communication plan you'd follow if the maintenance starts to hurt production traffic.

EasyTechnical
36 practiced

Given a MySQL slow query log entry, explain what each field means and how you'd use those logs to prioritize tuning work. Describe how to enable slow query logging safely in production, what pitfalls to watch out for, and how to correlate slow log entries with application traces.

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.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.