All fields

“Deployment & Process Managers (PM2)” in Information Technology

21 questions across 1 technology.

Information Technology

21 questions in 1 technology

#QuestionTechnologyTopicLevel
1How do you configure PM2 using an ecosystem.config.js file rather than passing options directly on the command line? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Intermediate
2What 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
3How do you configure PM2 to automatically restart your Node.js application after a server reboot? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Intermediate
4How 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
5What 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
6What is a Kubernetes Deployment's rolling update strategy, and how does it apply to updating a running Node.js application? Node.js › Docker & DeploymentNode.jsDocker & DeploymentAdvanced
7What is the 'detached' option when spawning a child process, and when would you use it? Node.js › Child Processes & Process ManagementNode.jsChild Processes & Process ManagementAdvanced
8What is the purpose of a HEALTHCHECK instruction in a Dockerfile for a Node.js application? Node.js › Docker & DeploymentNode.jsDocker & DeploymentIntermediate
9How do you correctly handle OS signals like SIGTERM and SIGINT in a Node.js application to implement graceful shutdown? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectAdvanced
10How do you implement graceful shutdown for a Node.js background worker process to avoid losing or corrupting in-progress jobs? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesAdvanced
11What is a blue-green deployment, and how does it minimize downtime and risk when deploying a new version of a Node.js application? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
12How does zero-downtime restart work with Node's cluster module or PM2, and why is it important for production deployments? Node.js › Clustering & Worker ThreadsNode.jsClustering & Worker ThreadsAdvanced
13What is a Dockerfile, and what are the essential steps in a basic Dockerfile for a Node.js application? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsBeginner
14How does PM2's cluster mode compare to manually using Node's built-in cluster module directly in application code? Node.js › Clustering & Worker ThreadsNode.jsClustering & Worker ThreadsIntermediate
15What is the Node.js LTS (Long-Term Support) release schedule, and why does it matter for choosing which version to run in production? Node.js › Node.js Fundamentals & Runtime ArchitectureNode.jsNode.js Fundamentals & Runtime ArchitectureIntermediate
16What are Node.js Single Executable Applications (SEA), and what are their current limitations? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
17What is a health check endpoint, and how does an orchestrator like Kubernetes use liveness and readiness probes differently? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
18How do you handle an uncaught exception inside a specific cluster worker without taking down the entire application? Node.js › Clustering & Worker ThreadsNode.jsClustering & Worker ThreadsAdvanced
19How would you implement a global error boundary for an entire Node.js application to ensure no error type goes completely unhandled? Node.js › Error HandlingNode.jsError HandlingAdvanced
20How would you use Git tags in combination with a CI/CD pipeline to trigger a production release of a Node.js application? Node.js › Git & Project ManagementNode.jsGit & Project ManagementAdvanced
21Why is it considered a security best practice to run a Node.js Docker container as a non-root user? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsAdvanced