All fields

“Docker & Containerization for Node.js” in Information Technology

21 questions across 1 technology.

Information Technology

21 questions in 1 technology

#QuestionTechnologyTopicLevel
1What 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
2What is a multi-stage Docker build, and how does it produce a smaller final image for a Node.js application? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsIntermediate
3How do you use environment variables and Docker's --env-file (or docker-compose's environment section) to configure a containerized Node.js application per environment? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsIntermediate
4Why 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
5How does Docker Compose simplify running a Node.js application alongside its dependencies (like a database and Redis) during local development? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsAdvanced
6What 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
7What is the purpose of a .dockerignore file when preparing a Node.js project for cloud deployment? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsBeginner
8What is the os.cpus() function used for when setting up clustering in a Node.js application? Node.js › Clustering & Worker ThreadsNode.jsClustering & Worker ThreadsBeginner
9What is a twelve-factor app, and how does it guide how a Node.js application should be configured for cloud deployment? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
10What is a container registry, and how does it fit into the deployment pipeline for a containerized Node.js application? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
11How do path.posix and path.win32 let you work with a specific path format regardless of the operating system Node.js is actually running on? Node.js › Path & OS ModulesNode.jsPath & OS ModulesIntermediate
12How 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
13What is a CI/CD pipeline for a Node.js application, and what stages does a typical one include? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
14What is the difference between build-time and runtime configuration for a Node.js application, and why does that distinction matter for container-based deployments? Node.js › Environment Variables & ConfigurationNode.jsEnvironment Variables & ConfigurationAdvanced
15What is a load balancer, and how does it distribute traffic across multiple Node.js application instances? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
16How 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
17What 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
18What is a canary release, and how does it reduce the blast radius of a risky Node.js deployment? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
19How 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
20What is a health check endpoint, and how does an orchestrator like Kubernetes use liveness and readiness probes differently? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
21How 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