Interview Q&A · questions with model answers
API Design Interview Questions
Part of the study plan for: Backend Engineer · Full Stack Engineer · Native AI Engineer · Forward Deployed Engineer (FDE) · QA Engineer / SDET · Tech Lead
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
What counts as a breaking change in an API?
Removing or renaming fields or endpoints, changing types or formats, making optional fields required, changing default behavior or semantics, tightening validation, changing error codes or status…
-
What is HATEOAS and is it used in practice?
HATEOAS (Hypermedia as the Engine of Application State) means responses include links describing available actions and related resources, so clients navigate the API dynamically. It's part of strict…
-
What naming conventions make APIs easier to use?
Plural nouns for collections (/users), consistent casing for paths (kebab-case) and fields (snake_case or camelCase, pick one), descriptive, unabbreviated names, booleans named as predicates…
-
What security practices apply to API design?
Authenticate every request, authorize at object and field level, validate input with schemas, limit payload sizes and rates, avoid exposing internal IDs or excessive data, use HTTPS, log security…
-
What does an API gateway do, and when do you need one?
An API gateway is a single entry point that handles cross-cutting concerns: routing, authentication, rate limiting, request/response transformation, caching, logging and sometimes aggregation, in…
-
What consistency guarantees should an API document?
Whether reads reflect a client's own writes immediately (read-your-writes), whether lists are eventually consistent (search indexes, replicas), ordering guarantees for events, and idempotency/retry…