Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.
A REST (Representational State Transfer) API is an architectural style for designing networked applications. It uses HTTP methods (GET, POST, PUT, DELETE) to perform operations on resources identified by URLs (endpoints)…
Answer: Return a structured JSON response with: status → HTTP status code error → Short message details → Optional for debugging Example: "status": 400, "error": "Bad Request", "details": "Email is required" What intervi…
Answer: HTTP provides the transport mechanism and defines methods: GET → Retrieve data POST → Create resource PUT → Update resource DELETE → Remove resource PATCH → Partial update What interviewers expect A clear definit…
Answer: An endpoint is a specific URL that represents a resource in a REST API. 👉 Example: → Represents user with ID 1. What interviewers expect A clear definition tied to REST API in ASP.NET Web API projects Trade-offs…
Answer: In REST, everything is modeled as a resource (users, products, orders). Each resource is identified by a URI and can be manipulated using standard HTTP methods. What interviewers expect A clear definition tied to…
Answer: Middleware is software that sits between client requests and server responses. Used for: Logging Authentication & Authorization Request validation Error handling Rate limiting What interviewers expect A c…
Answer: Idempotency means multiple identical requests have the same effect as one. PUT → Updating a resource with the same data multiple times results in no further change. DELETE → Deleting a resource repeatedly still r…
Answer: It indicates the request was successful, and the server is returning the expected response body (e.g., GET request returning data). What interviewers expect A clear definition tied to REST API in ASP.NET Web API…
Answer: 404 Not Found → The resource does not exist (or the client requested the wrong endpoint). 410 Gone → The resource used to exist but has been permanently removed. What interviewers expect A clear definition tied t…
Answer: It indicates a server-side failure (unexpected error, crash, or unhandled exception). It’s a generic error and should be logged for debugging. What interviewers expect A clear definition tied to REST API in ASP.N…
Answer: It indicates the request was well-formed (valid syntax) but could not be processed due to semantic errors. 👉 Example: Submitting a form where email is valid format but already exists. What interviewers expect A…
Answer: It indicates the server timed out waiting for the client’s request. 👉 Example: Client took too long to send data in a POST request. What interviewers expect A clear definition tied to REST API in ASP.NET Web API…
Answer: 401 Unauthorized → Authentication required (client not logged in / invalid token). 403 Forbidden → Authentication is valid, but the user lacks permissions. What interviewers expect A clear definition tied to REST…
Statelessness means each client request to the server must contain all the necessary information to process it (like authentication token, parameters, body). The server does not store client session state. 👉 Example in…
Responses from the server should indicate whether they are cacheable or not, to improve performance and scalability. Clients and intermediaries can reuse cached responses. 👉 Example in ASP.NET Core: [HttpGet("products")…
The uniform interface ensures that REST APIs follow consistent conventions for communication, making them predictable and easy to use. Key aspects: Use of standard HTTP methods (GET, POST, PUT, DELETE). Resource identifi…
Each request and response should have enough metadata (headers, content type, status codes) to describe how to process it, without external context. 👉 Example in ASP.NET Core: return Ok(new { Id = 1, Name = "John", Link…
Answer: Versioning ensures backward compatibility when APIs change. Common approaches: URI versioning → /api/v1/users Header-based versioning → Accept: application/vnd.myapi.v1+json Query parameter → /users?version=1 Wha…
Answer: Lightweight and easy to parse. Language independent. Human-readable. Supported natively by JavaScript and most frameworks. What interviewers expect A clear definition tied to REST API in ASP.NET Web API projects…
Answer: Use throttling to limit requests per minute/hour per client. Return 429 Too Many Requests. Provide Retry-After header. Tools: API Gateway, NGINX, Middleware. What interviewers expect A clear definition tied to RE…
Answer: An API key is a unique token used to authenticate requests. 👉 Example: GET /users?apikey=12345 Best practice: Send in headers → Authorization: ApiKey 12345. What interviewers expect A clear definition tied to RE…
Answer: Synchronous → Client waits until the server responds (blocking). Asynchronous → Server processes request in background and may send response later (via polling, callbacks, or webhooks). What interviewers expect A…
Answer: Used for CORS preflight requests. Tells the client which HTTP methods and headers are allowed. 👉 Example Response: llow: GET, POST, PUT, DELETE ccess-Control-Allow-Origin: * What interviewers expect A clear defi…
Provides clear usage guidelines for developers. Reduces onboarding time for new teams. Ensures consistency across different services. Helps with discoverability of endpoints, parameters, request/response formats. 👉 Tool…
rchitecture? API Gateway is a single entry point for APIs in a microservices architecture. Handles routing, load balancing, authentication, rate limiting, logging, monitoring. Examples: Kong, NGINX, AWS API Gateway, Azur…
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
A REST (Representational State Transfer) API is an architectural style for designing
networked applications. It uses HTTP methods (GET, POST, PUT, DELETE) to perform
operations on resources identified by URLs (endpoints). Data is usually exchanged in JSON
or XML format.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: Return a structured JSON response with: status → HTTP status code error → Short message details → Optional for debugging Example: "status": 400, "error": "Bad Request", "details": "Email is required"
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: HTTP provides the transport mechanism and defines methods: GET → Retrieve data POST → Create resource PUT → Update resource DELETE → Remove resource PATCH → Partial update
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: An endpoint is a specific URL that represents a resource in a REST API. 👉 Example: → Represents user with ID 1.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: In REST, everything is modeled as a resource (users, products, orders). Each resource is identified by a URI and can be manipulated using standard HTTP methods.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: Middleware is software that sits between client requests and server responses. Used for: Logging Authentication & Authorization Request validation Error handling Rate limiting
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: Idempotency means multiple identical requests have the same effect as one. PUT → Updating a resource with the same data multiple times results in no further change. DELETE → Deleting a resource repeatedly still results in it being deleted.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: It indicates the request was successful, and the server is returning the expected response body (e.g., GET request returning data).
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: 404 Not Found → The resource does not exist (or the client requested the wrong endpoint). 410 Gone → The resource used to exist but has been permanently removed.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: It indicates a server-side failure (unexpected error, crash, or unhandled exception). It’s a generic error and should be logged for debugging.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: It indicates the request was well-formed (valid syntax) but could not be processed due to semantic errors. 👉 Example: Submitting a form where email is valid format but already exists.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: It indicates the server timed out waiting for the client’s request. 👉 Example: Client took too long to send data in a POST request.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: 401 Unauthorized → Authentication required (client not logged in / invalid token). 403 Forbidden → Authentication is valid, but the user lacks permissions.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Statelessness means each client request to the server must contain all the necessary
information to process it (like authentication token, parameters, body). The server does not
store client session state.
👉 Example in ASP.NET Core Web API:
[HttpGet("profile")]
public IActionResult GetProfile([FromHeader] string token)
{
if (string.IsNullOrEmpty(token)) return Unauthorized();
// Token is validated each time (stateless, no session memory)
return Ok(new { Name = "John Doe", Email = "john@example.com"
});
}ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Responses from the server should indicate whether they are cacheable or not, to improve
performance and scalability. Clients and intermediaries can reuse cached responses.
👉 Example in ASP.NET Core:
[HttpGet("products")]
[ResponseCache(Duration = 60)] // Cache for 60 seconds
public IActionResult GetProducts()
{
return Ok(new[] { "Laptop", "Mouse", "Keyboard" });
}ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
The uniform interface ensures that REST APIs follow consistent conventions for
communication, making them predictable and easy to use.
Key aspects:
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Each request and response should have enough metadata (headers, content type, status
codes) to describe how to process it, without external context.
👉 Example in ASP.NET Core:
return Ok(new
{
Id = 1,
Name = "John",
Links = new[] { new { Rel = "self", Href = "/users/1" } }
});
Here, the response describes itself (content type = JSON, includes resource links).
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: Versioning ensures backward compatibility when APIs change. Common approaches: URI versioning → /api/v1/users Header-based versioning → Accept: application/vnd.myapi.v1+json Query parameter → /users?version=1
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: Lightweight and easy to parse. Language independent. Human-readable. Supported natively by JavaScript and most frameworks.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: Use throttling to limit requests per minute/hour per client. Return 429 Too Many Requests. Provide Retry-After header. Tools: API Gateway, NGINX, Middleware.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: An API key is a unique token used to authenticate requests. 👉 Example: GET /users?apikey=12345 Best practice: Send in headers → Authorization: ApiKey 12345.
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: Synchronous → Client waits until the server responds (blocking). Asynchronous → Server processes request in background and may send response later (via polling, callbacks, or webhooks).
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
Answer: Used for CORS preflight requests. Tells the client which HTTP methods and headers are allowed. 👉 Example Response: llow: GET, POST, PUT, DELETE ccess-Control-Allow-Origin: *
In a production ASP.NET Web API application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.
Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
👉 Tools: Swagger (OpenAPI), Postman, Redoc.
ASP.NET Web API ASP.NET Core Web API Tutorial · REST API
rchitecture?
monitoring.