InterviewStack.io LogoInterviewStack.io

Systematic Troubleshooting and Debugging Questions

Covers structured methods for diagnosing and resolving software defects and technical problems at the code and system level. Candidates should demonstrate methodical debugging practices such as reading and reasoning about code, tracing execution paths, reproducing issues, collecting and interpreting logs metrics and error messages, forming and testing hypotheses, and iterating toward root cause. Topic includes use of diagnostic tools and commands, isolation strategies, instrumentation and logging best practices, regression testing and validation, trade offs between quick fixes and long term robust solutions, rollback and safe testing approaches, and clear documentation of investigative steps and outcomes.

HardTechnical
54 practiced
Hard: Design a strategy to detect and debug database deadlocks that only occur under production scale. Include diagnostic SQL (e.g., examining lock tables), instrumentation for lock wait times, and application-level changes (e.g., lock ordering, retries with backoff). Explain how to validate the mitigation in production safely.
HardTechnical
59 practiced
Hard: Explain how you'd diagnose a memory leak in a large Java service running on Kubernetes that shows increasing RSS and eventually OOMs. Discuss how you'd use jmap, jstack, GC logs, heap dumps, FlameGraphs, and kube tools. Provide a step-by-step plan from detection to validation of a fix and discuss the impact of taking a heap dump in production.
EasyTechnical
31 practiced
Describe how you would use `git bisect` to find the commit that introduced a regression which causes a failing unit test. Include the high-level commands you would run and how you'd automate bisect if the test can be run non-interactively.
MediumTechnical
37 practiced
Medium: A complex bug appears only in production under high load and cannot be reproduced locally. Describe isolation and hypothesis-testing strategies you would use (e.g., sampling, feature flags, traffic mirroring, staged rollout) and explain how each helps validate the root cause without disrupting users.
EasyTechnical
27 practiced
Write a short Python helper that wraps a function and logs execution time and exceptions for diagnostic purposes. Signature: `def instrument(func):` should return a wrapper. The wrapper should log start/end timestamps and exception stack traces using the standard `logging` module. Provide the implementation and a brief explanation of why such an instrumentation wrapper is useful in debugging.

Unlock Full Question Bank

Get access to hundreds of Systematic Troubleshooting and Debugging interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.