All fields

“Logging & Monitoring” in Information Technology

28 questions across 4 technologies.

Information Technology

28 questions in 4 technologies

#QuestionTechnologyTopicLevel
1What is an APM (Application Performance Monitoring) tool, and what capabilities does it typically add beyond basic logging? Node.js › Logging & MonitoringNode.jsLogging & MonitoringIntermediate
2Why is structured (JSON) logging generally preferred over plain-text console.log() statements in a production Node.js application? Node.js › Logging & MonitoringNode.jsLogging & MonitoringBeginner
3What 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
4How would you implement request correlation IDs to trace a single request's logs across multiple log lines and services? Node.js › Logging & MonitoringNode.jsLogging & MonitoringIntermediate
5How would you implement distributed tracing across multiple Node.js microservices using OpenTelemetry? Node.js › Logging & MonitoringNode.jsLogging & MonitoringAdvanced
6What is the risk of exposing a raw error's stack trace in an API response, and how do you prevent it while still logging full details server-side? Node.js › Error HandlingNode.jsError HandlingIntermediate
7What 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
8What is the risk of accidentally logging or exposing environment variables that contain secrets, and how do you prevent it? Node.js › Environment Variables & ConfigurationNode.jsEnvironment Variables & ConfigurationIntermediate
9What is monkey-patching in the context of Node.js APM (Application Performance Monitoring) tools, and what are its risks? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
10What is observability (as distinct from traditional monitoring), and what are its three commonly cited pillars? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
11How would you implement a request-logging middleware in Express that captures method, path, status code, and response time for every request? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
12What does PM2's built-in monitoring dashboard (pm2 monit, or PM2 Plus) show, and what metrics are most useful for production operations? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Advanced
13How does dotnet-counters provide live performance monitoring, and what key metrics does it expose by default? .NET › Diagnostics & Performance.NETDiagnostics & PerformanceIntermediate
14What logging and observability practices suit a MAUI app? .NET MAUI › Best Practices & Architecture.NET MAUIBest Practices & ArchitectureAdvanced
15What logging and observability practices suit a MAUI app? .NET MAUI › Best Practices & Architecture.NET MAUIBest Practices & ArchitectureAdvanced
16What problem does PM2 solve for running a Node.js application in production, beyond just executing 'node server.js'? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Beginner
17What is the difference between fs.appendFile() and opening a file with the 'a' flag and writing to it manually? Node.js › File System & File ProcessingNode.jsFile System & File ProcessingIntermediate
18What is process.memoryUsage(), and how would you use it to monitor a Node.js application's memory consumption? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectIntermediate
19What is the AsyncLocalStorage API, and what problem does it solve for tracking context across asynchronous calls? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
20What is the node:diagnostics_channel module, and how does it differ from simply emitting a custom event? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
21What is a dead-letter queue (DLQ), and how should a Node.js job-processing system use one? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesAdvanced
22What is a canary release, and how does it reduce the blast radius of a risky Node.js deployment? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
23What 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
24How would you implement automatic error reporting to a service like Sentry in a Node.js application, and what data should be scrubbed before sending? Node.js › Error HandlingNode.jsError HandlingAdvanced
25How would you use async_hooks (the lower-level predecessor to AsyncLocalStorage) to trace the lifecycle of asynchronous resources in Node.js? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOAdvanced
26How would you implement a middleware that adds a correlation/request ID to every incoming request for tracing purposes across a distributed system? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
27How does PM2's built-in log management work, and how would you configure log rotation to prevent log files from growing unbounded? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Advanced
28How would you implement a dead-letter exchange in RabbitMQ to handle messages that repeatedly fail processing? Node.js › Message Queues (RabbitMQ & Kafka)Node.jsMessage Queues (RabbitMQ & Kafka)Advanced