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.

MediumSystem Design
73 practiced
Design an API gateway architecture for microservices that must enforce RESTful routing, request validation, per-client rate limiting, idempotency-key support for POST, and centralized telemetry export. Target load: 50k RPS, multi-region deployment. Describe components, data flow, where state is kept, and likely failure modes an SRE should plan for.
MediumTechnical
74 practiced
Compare offset-based pagination and cursor-based pagination for a high-traffic REST API used for listing items. Discuss performance, correctness when data is changing during pagination, cacheability, and operational considerations from an SRE viewpoint.
EasyTechnical
62 practiced
List and explain the meaning and typical SRE reactions to these HTTP status codes in production: 200 OK, 201 Created, 400 Bad Request, 404 Not Found, 429 Too Many Requests, 500 Internal Server Error. For each, say what it signals to the client and how it should influence monitoring/alerts or incident triage.
EasyTechnical
104 practiced
You have an SLO that 99.9% of requests to a REST API must return 2xx or 3xx codes in a rolling 30-day window. Explain how you'd calculate error budget consumption using request metrics, discuss which 4xx and 5xx categories should be included or excluded, and describe how to treat planned maintenance or known client misbehavior.
MediumTechnical
70 practiced
Draft a deprecation plan for an old REST endpoint used by many clients: include how to announce deprecation (response headers, docs, mailing lists), a grace period, metrics to track client adoption, and rollback criteria from an SRE perspective to avoid breaking customers and to ensure observability during the transition.

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.