InterviewStack.io LogoInterviewStack.io

RESTful API Design and HTTP Fundamentals Questions

Understanding REST architectural principles including resource-based URLs, proper HTTP methods (GET for safe retrieval, POST for creation, PUT for updates, DELETE for deletion), appropriate status codes (200 OK, 201 Created, 400 Bad Request, 404 Not Found, 500 Internal Server Error), and stateless communication patterns. Ability to design simple API endpoints following REST conventions.

EasyTechnical
65 practiced
Explain HTTP content negotiation. What are the roles of the Accept and Content-Type headers from the client and server perspectives? Describe how a server should behave when multiple formats are supported and when the client sends an Accept header the server cannot satisfy.
EasyTechnical
113 practiced
Classify the common HTTP methods GET, POST, PUT, PATCH, DELETE, HEAD, and OPTIONS in terms of safety and idempotency. For each method give a short example of when it is appropriate in a REST API and explain why safety or idempotency matters for client retries and caching.
HardSystem Design
73 practiced
Design REST endpoints and a database schema for Authors, Books, and Reviews where Authors have many Books and Books have many Reviews. Address API choices for nested routes versus standalone resources, response shapes to avoid N+1 queries, and SQL optimization strategies such as joins, batching, and pagination for list endpoints.
HardSystem Design
62 practiced
Design a webhook delivery system for a SaaS platform that must reliably deliver events to third-party endpoints. Cover message signing, replay protection, at-least-once delivery semantics, retry/backoff policy with jitter, dead-letter queueing, ordering guarantees or lack thereof, visibility for consumers, and scaling across regions. Provide suggested headers and payload structure.
EasyTechnical
76 practiced
Explain statelessness in the context of REST APIs. What does it mean for server and client responsibilities? Describe acceptable server-side state (if any), how statelessness affects horizontal scaling, and common patterns to handle session-like needs without server session state.

Unlock Full Question Bank

Get access to hundreds of RESTful API Design and HTTP Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.