Web & APIs
Almost every backend interview question eventually touches this track. “Design a URL shortener” is a system design question, but the answer is HTTP status codes, cache headers and rate limits. “Make login secure” is a cookie question, a token question and a CSRF question at once.
This track goes from the wire protocol upwards. Read http.md first even if you think you know
it — most candidates can name the methods and cannot explain why 301 and 308 differ, or what
Vary does to a CDN.
- HTTP — the request/response model, methods, status codes, headers, cookies, content negotiation, HTTP/1.1 vs 2 vs 3, TLS, keep-alive.
- REST vs GraphQL — REST constraints, resource design, GraphQL schemas and the N+1 problem, when each fits, and where gRPC belongs.
- Authentication and Authorisation — sessions vs tokens, JWT pitfalls, OAuth 2.0 and OIDC, password hashing, MFA, RBAC and ABAC.
- Cookies, CSRF and CORS — cookie attributes, why SameSite is the real CSRF defence, and what a preflight request actually does.
- API Design — versioning, pagination, idempotency keys, error formats, rate limits, webhooks and OpenAPI.
- Caching — browser cache, ETags, CDNs, Redis, invalidation strategies and cache stampedes.
- Web Security — the OWASP Top 10 with the mechanics behind injection, XSS, SSRF, IDOR, secrets and supply chain risk.
How the pieces fit
Section titled “How the pieces fit”A single request from a browser passes through more layers than most candidates can name:
browser cache → DNS → TCP → TLS → CDN/reverse proxy → load balancer → app server → middleware (auth, rate limit) → handler → cache → databaseEach arrow is a place where a question can be asked. A strong answer names the layer, the failure mode, and the trade-off, rather than listing technologies.
Prerequisites
Section titled “Prerequisites”You should be comfortable with:
- The difference between a process, a thread and a connection.
- What a DNS lookup and a TCP handshake cost in round trips.
- Basic symmetric and public-key cryptography (shared secret vs key pair).
If those are shaky, the TLS and JWT sections will read as magic instead of mechanism.
Where to go next
Section titled “Where to go next”Once this track is solid, the Architecture track takes the same primitives — caches, queues, consistency — and scales them to distributed systems.