Backend Development Flashcards
What is Node.js, and how does it work?
Node.js is a runtime environment that allows JavaScript to run on the server. It uses an event-driven, non-blocking I/O model.
What is Express.js?
Express.js is a web application framework for Node.js that simplifies building APIs and web applications.
What is REST, and how does it work?
REST is an architectural style for designing networked applications. It uses HTTP methods (GET, POST, PUT, DELETE) to perform CRUD operations.
What is the difference between SQL and NoSQL databases?
SQL databases are relational (e.g., MySQL, PostgreSQL). NoSQL databases are non-relational (e.g., MongoDB, Cassandra).
What is JWT (JSON Web Token)?
JWT is a compact, URL-safe token format used for securely transmitting information between parties as a JSON object.
What is middleware in Express.js?
Middleware are functions that have access to the request and response objects. They can modify requests, perform authentication, or log data.
What is the difference between authentication and authorization?
Authentication verifies a user’s identity (e.g., login). Authorization determines what a user is allowed to do (e.g., access control).
What is a session, and how is it different from a cookie?
A session is server-side storage of user data. A cookie is client-side storage of small data (e.g., session ID).