TGViewer
Web Development Web Development @webdevcoursefree ยท 79.6K subscribers
Post #3771 2.38K
๐Ÿš€ Web Development Interview Questions with Answers โ€” Part 8: APIs & Backend Concepts

๐Ÿง  166. What is an API?

API stands for: ๐Ÿ‘‰ Application Programming Interface

An API allows different software applications to communicate with each other.

Example:

When a weather app fetches weather data from a server, it uses an API.

Benefits:

โœ… Data sharing

โœ… System integration

โœ… Automation

๐Ÿง  167. Difference Between REST and GraphQL

Concept | REST | GraphQL

Endpoints | Multiple endpoints | Single endpoint

Response structure | Fixed response structure | Client chooses data

Data fetching | Over-fetching possible | Fetch only needed data

Complexity | Simpler | More flexible

Example:

REST: GET /users/1

GraphQL:

{
user(id:1){
name
email
}
}


๐Ÿง  168. What is a RESTful API?

RESTful API follows REST architectural principles.

Key Principles:

Stateless

Client-Server Architecture

Uniform Interface

Resource-Based URLs

Example:

GET /users

POST /users

PUT /users/1

DELETE /users/1

๐Ÿง  169. What are HTTP Status Codes?

HTTP status codes indicate server response status.

Categories:

Range | Meaning

1xx | Informational

2xx | Success

3xx | Redirection

4xx | Client Error

5xx | Server Error

๐Ÿง  170. Explain 200, 201, 400, 401, 403, 404, and 500

Code | Meaning

200 | OK

201 | Created

400 | Bad Request

401 | Unauthorized

403 | Forbidden

404 | Not Found

500 | Internal Server Error

Example:

res.status(404).json({
message: "User Not Found"
});


๐Ÿง  171. What is API Testing?

API Testing verifies functionality, performance, and security of APIs.

Checks:

โœ… Response data

โœ… Status codes

โœ… Authentication

โœ… Performance

Tools:

Postman

Insomnia

Swagger

๐Ÿง  172. What is Postman?

Postman is a tool used to test APIs.

Features:

โœ… Send API requests

โœ… Test endpoints

โœ… Automate testing

โœ… Manage collections

Example:

GET https://api.example.com/users

๐Ÿง  173. What is WebSocket?

WebSocket enables real-time two-way communication between client and server.

Uses:

Chat applications

Online gaming

Live notifications

Stock market updates

Benefits:

โœ… Real-time communication

โœ… Low latency

๐Ÿง  174. Difference Between Polling and WebSocket

Concept | Polling | WebSocket

Connection | Client repeatedly asks server | Persistent connection

Network usage | Higher network usage | Efficient communication

Updates | Slower updates | Real-time updates

๐Ÿง  175. What is Microservice Architecture?

Microservices divide an application into small independent services.

Example:

User Service

Payment Service

Order Service

Notification Service

Benefits:

โœ… Scalability

โœ… Independent deployment

โœ… Easier maintenance

๐Ÿง  176. What is Monolithic Architecture?

Monolithic architecture combines all components into one application.

Example:

Frontend

Backend

Database

โ†“

Single Application

Advantages:

โœ… Simpler development initially

Disadvantages:

โŒ Harder to scale

๐Ÿง  177. What is Caching?

Caching stores frequently accessed data temporarily for faster retrieval.

Benefits:

โœ… Faster performance

โœ… Reduced database load

โœ… Improved user experience

Example:

cache.set("users", data);


๐Ÿง  178. What is Redis?

Redis is an in-memory database commonly used for caching.

Features:

โœ… Extremely fast

โœ… Key-value storage

โœ… Session management

Example:

redis.set("user", userData);
  • โค 7
  • ๐Ÿฅฐ 1
More from @webdevcoursefree
  1. Oct 12, 2026For example: Go to Profile โ†’ <a> Submit Form โ†’ <button> Open Article โ†’ <a> Delete Accountโ€ฆ
  2. Oct 12, 2026๐ŸŒ Web Development Roadmap โ€” Part 16 HTML Links โ€” Tag Links are one of the most importantโ€ฆ
  3. Oct 12, 2026๐Ÿš€ ๐—ช๐—ต๐—ถ๐—ฐ๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น ๐—ช๐—ถ๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ? Want to builโ€ฆ
  4. Oct 9, 2026Post #4079
  5. Oct 9, 2026Post #4078
  6. Oct 9, 2026Post #4077
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’