Backend Development Flashcards

1
Q

What is Node.js, and how does it work?

A

Node.js is a runtime environment that allows JavaScript to run on the server. It uses an event-driven, non-blocking I/O model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Express.js?

A

Express.js is a web application framework for Node.js that simplifies building APIs and web applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is REST, and how does it work?

A

REST is an architectural style for designing networked applications. It uses HTTP methods (GET, POST, PUT, DELETE) to perform CRUD operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between SQL and NoSQL databases?

A

SQL databases are relational (e.g., MySQL, PostgreSQL). NoSQL databases are non-relational (e.g., MongoDB, Cassandra).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is JWT (JSON Web Token)?

A

JWT is a compact, URL-safe token format used for securely transmitting information between parties as a JSON object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is middleware in Express.js?

A

Middleware are functions that have access to the request and response objects. They can modify requests, perform authentication, or log data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between authentication and authorization?

A

Authentication verifies a user’s identity (e.g., login). Authorization determines what a user is allowed to do (e.g., access control).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a session, and how is it different from a cookie?

A

A session is server-side storage of user data. A cookie is client-side storage of small data (e.g., session ID).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly