TGViewer
Coding Interview Preparation Coding Interview Preparation @coding_interview_preparation · 5.9K subscribers
Post #1201 596
✅ API & Web Services – Web Development Interview Q&A 🌐💬 

1️⃣ What is an API?
Answer:

API (Application Programming Interface) allows communication between two software systems. It defines how requests and responses should be formatted.

2️⃣ REST vs SOAP – What's the difference?
Answer: 
- REST: Lightweight, uses HTTP, supports JSON/XML 
- SOAP: Protocol-based, strict standards, uses XML 
REST is more common for modern web services.

3️⃣ What is RESTful API? 
Answer: 

An API that follows REST principles: 
- Uses HTTP methods (GET, POST, PUT, DELETE) 
- Stateless 
- Has structured endpoints 
- Supports caching

4️⃣ What are HTTP status codes?
Answer: 

Codes returned in response: 
- 200: OK 
- 201: Created 
- 400: Bad Request 
- 401: Unauthorized 
- 403: Forbidden 
- 404: Not Found 
- 500: Server Error

5️⃣ What is GraphQL?
Answer: 

A query language for APIs by Facebook. 
- Client defines the structure of the response 
- Single endpoint 
- Reduces over-fetching and under-fetching of data

6️⃣ What is CORS?
Answer:

Cross-Origin Resource Sharing – A security feature in browsers that blocks requests from other origins unless explicitly allowed by the server.

7️⃣ What is rate limiting?
Answer:

Limits the number of API requests a user/client can make within a time frame to prevent abuse.

8️⃣ What is an API key and how is it used?
Answer:
An API key is a token used to authenticate and authorize access to APIs. It’s passed in headers or query strings.

9️⃣ Difference between PUT and PATCH?
Answer:

- PUT: Replaces the entire resource 
- PATCH: Updates only specified fields

🔟 What is a webhook?
Answer:

A way for servers to send data automatically to other services (e.g., when an event happens). It’s push-based, unlike APIs which are pull-based.

💬 Tap ❤️ if you found this useful!
  • ❤ 4
More from @coding_interview_preparation
  1. Oct 12, 2026Java Coding Interview Questions Easy 1. Reverse a string without using a built-in reverse…
  2. Oct 10, 2026100 SQL interview questions
  3. Oct 8, 2026If you're prepping for system design interviews, this repo is gold It contains a curated,…
  4. Oct 6, 2026document post
  5. Oct 4, 2026💼 Why Your Resume Gets Rejected Before a Human Reads It You may have good skills and proj…
  6. Oct 2, 2026🧠 Coding Myths You Should Stop Believing There's a lot of advice online about learning to…
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 →