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, and resource exhaustion. Covers a systematic troubleshooting method under incident pressure. Tests operational instincts distinct from design knowledge.
You need to inspect a production table with billions of rows because a dashboard looks wrong. What steps would you take to keep your query safe, minimize load on the database, and avoid accidentally changing any data?
You run the query:
SELECT * FROM events WHERE event_date = '2024-06-01';
But it returns zero rows even though you know events exist on that date. List a structured debugging checklist (5-7 steps) you would follow as a data engineer to determine why the filter returned no rows. Mention tools, quick queries, and configuration checks you'd use.
A dashboard metric differs from a raw SQL report by 2-3%. Describe a systematic debugging process to find whether the discrepancy comes from pre-aggregation, filter conditions, timezones, or deduplication. What checks and queries would you run?
You have thousands of queries that compute aggregates over event_date. After migrating to a new warehouse you notice regressions. Describe a plan to diagnose whether regressions are due to missing statistics, different query planner behavior, or schema differences (types, nullability, partitioning). Include SQL checks and experiments you would run.
As a data engineer, how do you decide whether a bad query result is something you can fix yourself with SQL, versus something that should be escalated to the source-system owner, DBA, or analytics team? What signals tell you the problem is outside your scope?
Unlock Full Question Bank
Get access to all 6 Database Monitoring, Troubleshooting, and Diagnostics interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.