0% found this document useful (0 votes)
4 views3 pages

Backend Nodejs Interview Questions Answers

The document provides a comprehensive overview of backend interview questions and answers focused on Node.js, Express, and MongoDB. Key topics include Node.js as a server-side runtime, Express.js for building APIs, and MongoDB as a NoSQL database. It also covers essential concepts like JWT for authentication, middleware, CRUD operations, and error handling.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

Backend Nodejs Interview Questions Answers

The document provides a comprehensive overview of backend interview questions and answers focused on Node.js, Express, and MongoDB. Key topics include Node.js as a server-side runtime, Express.js for building APIs, and MongoDB as a NoSQL database. It also covers essential concepts like JWT for authentication, middleware, CRUD operations, and error handling.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Backend Interview Questions and Answers

([Link], Express, MongoDB)

1. What is [Link]?
[Link] is a runtime environment that allows us to run JavaScript on the server. It uses
Chrome's V8 engine and is event-driven and non-blocking.

2. Why use [Link] for backend?


[Link] is fast and scalable. It can handle multiple requests at the same time using
non-blocking I/O.

3. What is [Link]?
[Link] is a framework used in [Link] to build APIs and web applications easily.

4. What is REST API?


REST API allows communication between frontend and backend using HTTP methods like
GET, POST, PUT, DELETE.

5. What is middleware?
Middleware is a function that runs between request and response. It can modify request or
response.

6. What is JWT?
JWT (JSON Web Token) is used for authentication. It securely transfers user identity
information.

7. How JWT works?


User logs in → server generates token → user sends token → server verifies token.

8. Authentication vs Authorization?
Authentication verifies identity. Authorization verifies access permissions.

9. What is event loop?


Event loop allows [Link] to handle multiple requests asynchronously.
10. What is async/await?
async/await is used to handle asynchronous operations in a clean and readable way.

11. What is MongoDB?


MongoDB is a NoSQL database that stores data in JSON-like documents.

12. What is Mongoose?


Mongoose is a library used to interact with MongoDB using schemas and models.

13. What is CRUD?


CRUD stands for Create, Read, Update, Delete.

14. What is MVC architecture?


MVC stands for Model, View, Controller. It helps organize code properly.

15. What is bcrypt?


bcrypt is used to hash passwords securely.

16. What is error handling?


Error handling is used to prevent application crashes and handle errors safely.

17. What is HTTP status code?


Status codes show request result. Example: 200 success, 404 not found, 500 server error.

18. What is CORS?


CORS allows frontend and backend from different domains to communicate.

19. What is indexing?


Indexing improves database query performance.

20. What is pagination?


Pagination divides data into smaller pages.

21. What is environment variable?


Environment variables store sensitive data like secrets and database URLs.

22. Difference between PUT and PATCH?


PUT updates full data. PATCH updates partial data.

23. Sync vs Async?


Synchronous runs one by one. Asynchronous runs without blocking.

24. What is API validation?


Validation checks if data is correct before saving.

25. Explain your backend project.


I built a backend using [Link], [Link], MongoDB, JWT authentication, bcrypt
password hashing, MVC architecture, and deployed it.

You might also like