All fields

“Debugging & Diagnostics” in Information Technology

27 questions across 2 technologies.

Information Technology

27 questions in 2 technologies

#QuestionTechnologyTopicLevel
1What is source map support, and why is it important when debugging a transpiled or bundled Node.js application (like TypeScript compiled to JavaScript)? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsIntermediate
2How do you use the built-in 'debugger' statement together with Node's --inspect flag to set breakpoints in code? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsBeginner
3How do you use Node's built-in heap snapshot capability to diagnose a suspected memory leak? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsIntermediate
4What is the DEBUG environment variable convention (popularized by the 'debug' npm package), and how does it let you enable verbose logging selectively? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsIntermediate
5How would you use the 'clinic.js' toolset (clinic doctor, clinic flame) to diagnose a Node.js performance problem? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsAdvanced
6What is React DevTools and how do you install it? React › React DevTools & DebuggingReactReact DevTools & DebuggingBeginner
7What is the util module's inspect() function used for, and how does it relate to how console.log() displays objects? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
8What is the difference between operational errors and programmer errors in Node.js, and why does this distinction matter? Node.js › Error HandlingNode.jsError HandlingBeginner
9Why is structured (JSON) logging generally preferred over plain-text console.log() statements in a production Node.js application? Node.js › Logging & MonitoringNode.jsLogging & MonitoringBeginner
10What does the node:util.types module provide, and how does it differ from JavaScript's built-in typeof operator? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
11What is the purpose of setting explicit CPU and memory resource requests and limits for a Node.js container in Kubernetes? Node.js › Docker & DeploymentNode.jsDocker & DeploymentIntermediate
12How would you measure how 'busy' the event loop is in a running Node.js process using a simple technique? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOIntermediate
13What is log level (debug, info, warn, error), and how do you configure a logger like Pino or Winston to filter output by level per environment? Node.js › Logging & MonitoringNode.jsLogging & MonitoringIntermediate
14What is an APM (Application Performance Monitoring) tool, and what capabilities does it typically add beyond basic logging? Node.js › Logging & MonitoringNode.jsLogging & MonitoringIntermediate
15How would you generate and interpret a CPU profile for a Node.js application using the built-in --prof flag? Node.js › Performance Optimization & ProfilingNode.jsPerformance Optimization & ProfilingIntermediate
16How do you use the --inspect flag and Chrome DevTools to profile a running Node.js application in production? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
17What are Node.js's built-in diagnostic reports, and how do you generate one? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
18What is a memory leak in the context of a long-running Node.js server, and what are the most common causes? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
19What is the difference between an unhandled promise rejection and an uncaught exception in Node.js, and how does Node handle each by default? Node.js › Async PatternsNode.jsAsync PatternsAdvanced
20What is observability (as distinct from traditional monitoring), and what are its three commonly cited pillars? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
21What does the node:perf_hooks module provide, and how would you use it to measure precise execution time of a code block? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesAdvanced
22What is error wrapping (or error chaining), and how does the Error class's 'cause' property support it in modern Node.js? Node.js › Error HandlingNode.jsError HandlingAdvanced
23What are the distinct phases of the Node.js event loop, and what kind of callbacks does each phase execute? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOAdvanced
24What is 'event loop lag' (or 'event loop delay'), and how would you monitor it in a production Node.js application? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOAdvanced
25How does the V8 JavaScript engine's microtask queue interact with the Node.js event loop's macrotask phases, and why does this occasionally surprise developers? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOAdvanced
26How would you implement conditional middleware in Express that only applies to certain requests based on a runtime condition? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
27How would you use Git bisect to find the specific commit that introduced a regression in a Node.js application's behavior? Node.js › Git & Project ManagementNode.jsGit & Project ManagementAdvanced