API Fundamentals Course
API Fundamentals
/
Intermediate

Intermediate Interview Questions

Definition

Questions designed to test practical experience with RESTful architecture, authentication, and HTTP headers.

Explain Like I'm New

Interviewers want to see that you've actually built APIs and hit roadblocks. They will ask about PUT vs PATCH, CORS, and statelessness.

Real World Example

Being asked: 'How would you design a REST API endpoint to update a user's password?'

Common Use Cases

  • •Mid-level Engineering Interviews

Terminal Output

bash / terminal
/* Common Intermediate Question: "What is the difference between PUT and PATCH?" Answer: PUT is used to completely replace a resource. You must send the entire object payload. PATCH is used to partially update a resource. You only send the specific fields that changed. */

Interview Questions

basic

  • Explain the concept of 'Statelessness' in REST.

intermediate

  • What is a CORS error and how do you fix it?

Flash Cards

Question

What is Statelessness?

Click to reveal answer
Answer

It means the server does not store any session information about the client between requests. Every single request from the client must contain all the information (like an Auth Token) necessary for the server to understand and authorize it.

Question

What is CORS?

Click to reveal answer
Answer

Cross-Origin Resource Sharing. It's a browser security feature that prevents a malicious website from making background API requests to your bank account. To fix it, the backend server must be configured to send the `Access-Control-Allow-Origin` header, explicitly whitelisting the frontend's domain.