Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
4 questionsHow 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
How can you securely store and verify passwords in a Node.js application?
Phone Screen ยท 340 views ยท security, crypto, auth
How do you handle environment variables in Node.js?
Phone Screen ยท 49 views ยท environment variables, configuration, security
Medium
16 questionsWhat is CSRF and how do you protect a Node.js API against it?
Backend ยท 1.2k views ยท csrf, cors, security
How do you manage configuration in a Node.js application for different environments?
Low-Level Design ยท 1.1k views ยท configuration, environment variables, deployment
How do you manage sessions and authentication in a Node.js web application?
Frontend ยท 1.1k views ยท authentication, sessions, jwt
How does Node.js handle crypto operations efficiently without blocking the event loop?
Low-Level Design ยท 967 views ยท crypto, security, libuv
What is Helmet and which HTTP security headers should a Node.js API set?
Backend ยท 947 views ยท nodejs, security, helmet
Explain how the 'crypto' module secures sensitive data in Node.js
Low-Level Design ยท 765 views ยท crypto, security, hashing
Explain the differences between fork(), spawn(), and exec() in the child_process module.
Low-Level Design ยท 763 views ยท child-process, concurrency, performance
How do you containerize a Node.js app with a small, secure Docker image (multi-stage, distroless)?
System Design ยท 694 views ยท nodejs, docker, deployment
Hard
7 questionsWhat is a ReDoS (Regular Expression Denial of Service) attack and how do you avoid it?
Backend ยท 1.0k views ยท nodejs, security, redos
When would you use `child_process` module in Node.js?
System Design ยท 1.0k views ยท child_process, system calls, concurrency
What is SSRF and how do you mitigate it in a Node.js backend?
Backend ยท 830 views ยท nodejs, security, ssrf
What is the 'vm' (Virtual Machine) module and when would you use it?
Low-Level Design ยท 404 views ยท vm, security, v8
How do you secure your Node.js API endpoints?
System Design ยท 384 views ยท security, api, authentication
What is prototype pollution and how do you prevent it in Node.js?
Backend ยท 317 views ยท nodejs, security, prototype-pollution
What is the Node.js permission model (--permission) and what does it protect against?
Backend ยท 58 views ยท nodejs, security, permission-model
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question