All fields

“Cloud & DevOps” in Information Technology

49 questions across 1 technology.

Information Technology

49 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is the purpose of a .dockerignore file when preparing a Node.js project for cloud deployment? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsBeginner
2What 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
3What is auto-scaling, and what metrics commonly trigger scaling decisions for a Node.js service running in the cloud? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
4What is infrastructure as code (IaC), and how might a Node.js team use a tool like Terraform or the AWS CDK alongside their application code? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
5What is a load balancer, and how does it distribute traffic across multiple Node.js application instances? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
6What role do secret managers (like AWS Secrets Manager) play in deploying a Node.js app across dev, staging, and production? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
7What is a reverse proxy, and why is Nginx commonly placed in front of a Node.js application in production? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
8What is a feature flag, and how would you implement one in a Node.js application to control a new feature's rollout? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
9What 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
10What is a health check endpoint, and how does an orchestrator like Kubernetes use liveness and readiness probes differently? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
11What is a CI/CD pipeline for a Node.js application, and what stages does a typical one include? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
12What is horizontal scaling for a Node.js application, and what specific architectural requirement does it impose? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
13What 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
14What is a canary release, and how does it reduce the blast radius of a risky Node.js deployment? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
15What is observability (as distinct from traditional monitoring), and what are its three commonly cited pillars? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
16What is a background job in the context of a Node.js web application, and why can't long-running work simply happen inside a request handler? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesBeginner
17What is the difference between a delayed job and a scheduled (repeatable) job in a Node.js job queue? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesBeginner
18What is a Dockerfile, and what are the typical steps involved in containerizing a Node.js application? Node.js › Docker & DeploymentNode.jsDocker & DeploymentBeginner
19What does the EXPOSE instruction in a Dockerfile actually do, and what is a common misconception about it? Node.js › Docker & DeploymentNode.jsDocker & DeploymentBeginner
20What is the difference between multer's diskStorage and memoryStorage engines? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingBeginner
21Why should an application typically avoid storing uploaded files directly on the same server instance that runs the web application? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingBeginner
22How does the dotenv package work, and what problem does it solve for local Node.js development? Node.js › Environment Variables & ConfigurationNode.jsEnvironment Variables & ConfigurationBeginner
23Why is structured (JSON) logging generally preferred over plain-text console.log() statements in a production Node.js application? Node.js › Logging & MonitoringNode.jsLogging & MonitoringBeginner
24How do you implement a retry-with-exponential-backoff pattern for a flaky async operation in Node.js? Node.js › Async PatternsNode.jsAsync PatternsIntermediate
25What is a cron job, and how would you schedule recurring background tasks in a Node.js application using node-cron or BullMQ's repeatable jobs? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate
26What are the trade-offs of using an in-memory job queue (like a simple array-based queue) versus a persistent, Redis-backed queue? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate
27What is the difference between in-memory caching (like a Map or node-cache) and a distributed cache (like Redis)? Node.js › CachingNode.jsCachingIntermediate
28What is a database connection pool, and why does a Node.js application need one rather than opening a new connection per request? Node.js › DatabasesNode.jsDatabasesIntermediate
29What is database migration, and why is it important to manage schema changes through versioned migration files rather than manual changes? Node.js › DatabasesNode.jsDatabasesIntermediate
30How does Docker Compose simplify local development for a Node.js application that depends on a database and a cache? Node.js › Docker & DeploymentNode.jsDocker & DeploymentIntermediate
31What is the purpose of a HEALTHCHECK instruction in a Dockerfile for a Node.js application? Node.js › Docker & DeploymentNode.jsDocker & DeploymentIntermediate
32How would you stream a large file upload directly to processing (like virus scanning or transcoding) without first saving the entire file to disk? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingIntermediate
33What is HTTP keep-alive, and how does it improve performance for a Node.js server handling many requests from the same client? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersIntermediate
34How 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
35How 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
36How does Node's node:https module differ from node:http, and what additional configuration does it require? Node.js › HTTP & HTTPS ModulesNode.jsHTTP & HTTPS ModulesIntermediate
37What are the key benefits and tradeoffs of splitting a Node.js monolith into microservices? Node.js › Microservices Architecture with Node.jsNode.jsMicroservices Architecture with Node.jsIntermediate
38How do you implement service-to-service authentication in a Node.js microservices architecture, so internal services can trust requests from each other? Node.js › Microservices Architecture with Node.jsNode.jsMicroservices Architecture with Node.jsIntermediate
39What is load testing, and how would you use a tool like autocannon or k6 to benchmark a Node.js API's throughput and latency? Node.js › Performance Optimization & ProfilingNode.jsPerformance Optimization & ProfilingIntermediate
40What is the difference between vertical and horizontal performance optimization strategies for a Node.js application, and how do you decide which to pursue first? Node.js › Performance Optimization & ProfilingNode.jsPerformance Optimization & ProfilingIntermediate
41What is a Circuit Breaker pattern, and why is it important when a Node.js service calls an unreliable downstream dependency? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
42How do you properly handle process signals (SIGTERM) inside a containerized Node.js application to support graceful shutdown? Node.js › Docker & DeploymentNode.jsDocker & DeploymentAdvanced
43Why should a Node.js Docker container generally run as a non-root user, and how do you configure this in a Dockerfile? Node.js › Docker & DeploymentNode.jsDocker & DeploymentAdvanced
44What is the difference between deploying a Node.js application to a Platform-as-a-Service (like Heroku or Render) versus a self-managed container orchestrator (like Kubernetes)? Node.js › Docker & DeploymentNode.jsDocker & DeploymentAdvanced
45What 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
46How would you implement direct-to-S3 file uploads from a client, avoiding routing large file uploads through your Node.js server entirely? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingAdvanced
47How would you implement HTTP request timeout and connection management on the server side in Node.js to protect against slow-loris style attacks? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersAdvanced
48How would you implement a simple TCP-level proxy or load balancer in Node.js using the net module, distinct from an HTTP-level reverse proxy? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersAdvanced
49How would you handle service discovery in a Node.js microservices architecture, so services can find each other's network locations dynamically? Node.js › Microservices Architecture with Node.jsNode.jsMicroservices Architecture with Node.jsAdvanced