What is Node.js? Easy
Node.js is a JavaScript runtime built on Chrome V8 engine that allows running JavaScript on the server-side.
What is the Event Loop in Node.js? Easy
The Event Loop handles asynchronous callbacks and ensures non-blocking execution.
What is npm? Easy
npm (Node Package Manager) manages dependencies and packages in Node.js applications.
Difference between CommonJS and ES Modules? Medium
CommonJS uses require(). ES Modules use import/export syntax.
What is middleware in Express? Medium
Middleware functions execute during request-response lifecycle.
Explain callback vs Promise vs async/await. Medium
Callbacks are traditional async functions. Promises improve readability. Async/await simplifies promise usage.
What is JWT? Medium
JSON Web Token is used for authentication between client and server.
How does Node handle concurrency? Medium
Node uses single-threaded event loop with non-blocking I/O.
What is clustering in Node? Hard
Cluster module allows Node to use multi-core systems.
What are streams in Node.js? Medium
Streams process data in chunks, improving memory efficiency.
Explain process.nextTick(). Hard
Executes callback after current operation completes.
How to secure Node.js app? Hard
Use HTTPS, helmet, rate limiting, input validation.
What is CORS? Easy
Cross-Origin Resource Sharing controls resource access between domains.
What is Buffer? Easy
Buffer handles binary data in Node.
What is REST API? Easy
Representational State Transfer architecture style for APIs.
How to handle errors in Express? Medium
Use centralized error handling middleware.
What is Redis used for? Medium
Redis is used for caching and session management.
How to improve Node.js performance? Hard
Use clustering, caching, async operations.
What is PM2? Medium
PM2 is a production process manager for Node.js apps.
Explain microservices in Node. Hard
Microservices break application into small independent services.
What is package.json? Easy
package.json is a configuration file that stores metadata about a Node.js project including dependencies, scripts, version, and project details.
What is npx? Easy
npx is a package runner tool that executes Node packages without globally installing them.
What is __dirname in Node.js? Easy
__dirname is a global variable that returns the directory path of the current module.
What is __filename? Easy
__filename returns the absolute path of the currently executing file.
What is dotenv? Easy
dotenv is a package used to load environment variables from a .env file into process.env.
What is the difference between spawn() and exec()? Medium
spawn() launches a new process with a stream interface. exec() runs a command and buffers the output.
What is child_process module? Medium
The child_process module allows Node.js to spawn subprocesses to execute system commands.
What is Helmet in Express? Medium
Helmet is middleware that helps secure Express apps by setting HTTP headers.
What is rate limiting? Medium
Rate limiting restricts the number of requests a client can make in a given time to prevent abuse.
What is Morgan? Medium
Morgan is an HTTP request logger middleware for Node.js.
What is the difference between synchronous and asynchronous APIs? Medium
Synchronous APIs block execution, while asynchronous APIs allow non-blocking operations.
What is process.env? Medium
process.env is an object containing environment variables for the Node.js process.
What is WebSocket? Medium
WebSocket enables real-time two-way communication between client and server.
What is Socket.io? Medium
Socket.io is a library that enables real-time bidirectional event-based communication.
What is Sequelize? Medium
Sequelize is an ORM for Node.js used to interact with SQL databases.
What is Mongoose? Medium
Mongoose is an ODM for MongoDB in Node.js applications.
What is API throttling? Medium
API throttling limits the number of API requests to maintain system stability.
What is load balancing? Medium
Load balancing distributes traffic across multiple servers to improve reliability and scalability.
What is message queue? Medium
A message queue allows asynchronous communication between services.
What is Bull queue? Medium
Bull is a Redis-based queue library for handling background jobs.
Explain Node.js internal architecture. Hard
Node.js uses V8 engine, libuv for async I/O, event loop, and single-threaded architecture.
What is libuv? Hard
libuv is a multi-platform C library that provides asynchronous I/O operations in Node.js.
How does Node.js handle CPU intensive tasks? Hard
Node.js uses worker threads or child processes to handle CPU-intensive tasks.
What are Worker Threads? Hard
Worker threads allow running JavaScript in parallel threads.
What is backpressure in streams? Hard
Backpressure is a mechanism to control data flow between readable and writable streams.
Explain garbage collection in Node.js. Hard
Node.js uses V8 garbage collector to manage memory automatically.
What is event emitter pattern? Hard
EventEmitter allows objects to emit named events and attach listeners.
What is Zero-downtime deployment? Hard
Zero-downtime deployment updates application without interrupting service.
How to implement circuit breaker in Node.js? Hard
Circuit breaker prevents repeated failures by temporarily blocking calls to failing service.
What is API gateway? Hard
API Gateway acts as single entry point for multiple backend services.
How to scale Node.js application horizontally? Hard
Use clustering, load balancers, container orchestration (Docker + Kubernetes).
Join our live classes with expert instructors and hands-on projects.
Enroll NowCustomized Corporate Training Programs and Developing Skills For Project Success.
Subscibe to our newsletter and we will notify you about the newest updates on Edugators