Skip to content
PPreptima

Backend Engineering interview questions

Language-agnostic service engineering: the protocols, boundaries, and failure handling that sit between a coding round and a full system design round.

12 published across 7 topics.

Backend engineering fundamentals56 short answers on one page, for revising rather than studying.

HTTP & REST

2 questions

Methods and status semantics, caching headers, content negotiation, and HTTP/2 and HTTP/3 differences.

mediumConcept

Which status codes and method semantics do you insist on in a code review, how do the caching headers fit together, and is the API you just described REST?

Get the method's safety, idempotency and cacheability right, use the status code intermediaries and clients act on rather than a generic 200 with an error body, pair Cache-Control freshness with ETag or Last-Modified validators, and be honest that most APIs called REST are resource-shaped HTTP without hypermedia.

5 minentry, mid, senior

Authentication & Authorisation

2 questions

Sessions versus tokens, OAuth 2 and OIDC flows, JWT validation pitfalls, and RBAC versus ABAC.

hardConceptDesign

Would you use server-side sessions or JWTs for authenticating your API, and why?

Default to server-side sessions in an opaque HttpOnly cookie, because revocation is a row delete and the browser cannot read the credential. Choose JWTs only when a resource server must validate without calling the issuer, keep them short-lived, and pin the algorithm, issuer, audience and expiry on every verification.

5 minmid, senior, staff

Microservices

2 questions

Service boundaries, data ownership, saga and outbox patterns, and when a monolith is the right answer.

Resilience Patterns

2 questions

Timeouts, retries, idempotency keys, dead-letter queues, and designing for partial failure.

GraphQL & gRPC

1 question

Schema design, N+1 resolution, streaming RPC, and choosing a protocol per consumer.

Distributed Systems Theory

1 question

Time and ordering, leader election, quorums, idempotence, and classic impossibility results.

Backend Scenarios

2 questions

Production situations to diagnose out loud: latency spikes, memory growth, cascading failures, bad deploys.