Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
9 questionsHow do you enable gzip/Brotli compression for HTTP responses?
Backend ยท 1.2k views ยท nodejs, http, compression
Explain the concept of 'middleware' in Express.js.
Frontend ยท 1.0k views ยท express.js, middleware, web development
How do you handle CORS (Cross-Origin Resource Sharing) in Node.js?
Frontend ยท 992 views ยท cors, security, express.js
What are the main security risks of using the 'eval()' function in Node.js?
Phone Screen ยท 811 views ยท security, best-practices, eval
What does NODE_ENV=production actually change and why does it matter?
Backend ยท 619 views ยท nodejs, ops, node-env
What is Node.js and why is it popular?
Phone Screen ยท 594 views ยท basics, runtime, javascript
Explain the concept of REPL in Node.js
Phone Screen ยท 314 views ยท fundamentals, repl, cli
Explain the purpose of `package.json` and `npm`.
Phone Screen ยท 294 views ยท npm, package.json, dependencies
Medium
12 questionsHow do you manage configuration in a Node.js application for different environments?
Low-Level Design ยท 1.1k views ยท configuration, environment variables, deployment
What are some best practices for structuring a Node.js project?
System Design ยท 1.1k views ยท best practices, project structure, architecture
What is Helmet and which HTTP security headers should a Node.js API set?
Backend ยท 947 views ยท nodejs, security, helmet
What are the differences between npm, Yarn, and pnpm?
Backend ยท 860 views ยท nodejs, npm, pnpm
How do you handle errors in Node.js applications?
Low-Level Design ยท 668 views ยท error handling, asynchronous, promises
How do you protect a Node.js API against Denial of Service (DoS) and brute-force attacks?
System Design ยท 617 views ยท security, api, middleware
How do you implement rate limiting in a Node.js Express application?
System Design ยท 564 views ยท security, express, middleware
How do you handle uncaught exceptions and unhandled promise rejections in Node.js?
Low-Level Design ยท 423 views ยท errors, process, best-practices
Hard
6 questionsWhat is a ReDoS (Regular Expression Denial of Service) attack and how do you avoid it?
Backend ยท 1.0k views ยท nodejs, security, redos
How do you implement microservices communication in Node.js?
System Design ยท 836 views ยท microservices, grpc, architecture
What changes for a Node.js app running on AWS Lambda vs a long-running server?
System Design ยท 774 views ยท serverless, aws-lambda, cold-start
What is the 'vm' (Virtual Machine) module and when would you use it?
Low-Level Design ยท 404 views ยท vm, security, v8
What is the package.json "exports" field and conditional exports?
Backend ยท 404 views ยท nodejs, esm, packaging
How do you secure your Node.js API endpoints?
System Design ยท 384 views ยท security, api, authentication
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question