1. What is the primary benefit of using middleware in a Node.js application?
2. In Node.js, what is the "Poll" phase responsible for?
3. What is the purpose of the console.log() statement in debugging Node.js code?
4. What is "auto-scaling" in the context of cloud-based Node.js applications, and how does it work?
5. What is the primary benefit of using a library like "inquirer.js" in Node.js CLI development?
6. What is a WebSocket handshake in Node.js?
7. In Node.js, how is the connection to a PostgreSQL database typically established using the pg module?
8. What does "REST" stand for in "RESTful APIs" in Node.js?
9. What is "cold start" in the context of AWS Lambda and how can it affect serverless Node.js applications?
10. In a Promise, what does the "resolve" state indicate?
11. In Node.js RESTful APIs, what is the purpose of the HTTP GET method?
12. What is a common use case for npm scripts in a Node.js project?
13. What is a writable stream in Node.js?
14. Which Docker command is used to build a Docker image from a Dockerfile for a Node.js application?
15. Which JavaScript feature introduced in ES6 (ECMAScript 2015) is commonly used for handling asynchronous code in a more readable and maintainable way in Node.js?
16. In Node.js RESTful APIs, what is the purpose of the HTTP PUT method?
17. In Node.js, which core module provides the foundation for working with streams?
18. Which core module allows Node.js applications to perform network operations and create network servers or clients?
19. What is an advantage of using Yarn over npm for package management in Node.js projects?
20. When should error handling be implemented in Node.js code?