Home › Blog › Backend engineer interview questions with answer outlines

Backend engineer interview questions with answer outlines

Backend engineer interviews test whether you can build services that are correct, fast and reliable under real load. A typical loop has a coding round, a system design round, a backend fundamentals discussion — APIs, databases, caching, concurrency, messaging, security — and a behavioural round. Interviewers listen for trade-offs and failure handling: what happens when the database is slow, a message is delivered twice, or traffic triples overnight.

Fifteen common backend interview questions

  1. Design a REST API for a feature you've built. What would you change now?
  2. How do you choose between SQL and NoSQL for a new service?
  3. How does a database index work, and when does it not help?
  4. Explain transaction isolation levels with an example bug each prevents.
  5. Where would you add caching, and how do you keep it consistent?
  6. What is the N+1 query problem?
  7. How do you make an operation idempotent?
  8. At-least-once versus exactly-once delivery in message queues?
  9. How do you handle a slow downstream dependency?
  10. Explain rate limiting algorithms.
  11. How do you design for horizontal scaling?
  12. How do you store passwords and handle authentication tokens?
  13. What do you log and monitor for a service?
  14. How do you roll out a risky database migration?
  15. Design a URL shortener or a notification service.

Data and caching

Reliability patterns

ProblemPattern
Retries cause duplicate effectsIdempotency keys and deduplication
Slow dependency drags everything downTimeouts, circuit breakers, bulkheads
Traffic spikesQueues to absorb load, autoscaling, rate limiting
Message delivered twiceIdempotent consumers; at-least-once plus dedupe
Partial failure across servicesSagas with compensating actions, outbox pattern
Thundering herd on recoveryExponential backoff with jitter

Concurrency and rate limiting

Expect a concurrency scenario: two requests decrement the same inventory. Answers include a database constraint or conditional update (UPDATE … WHERE stock > 0), optimistic locking with a version column, or a distributed lock for cross-service cases — with the trade-offs of each. For rate limiting, know token bucket (allows bursts up to capacity), leaky bucket (smooths output), and fixed versus sliding windows (sliding avoids boundary bursts), and where to store counters in a distributed setup, usually Redis. See Redis interview questions.

Security basics

Hash passwords with a slow, salted algorithm such as bcrypt, scrypt or Argon2 — never plain hashes. Use short-lived access tokens with refresh tokens, validate input at boundaries, use parameterised queries, enforce authorisation on every request (not just authentication), keep secrets in a secrets manager, and log security-relevant events without logging secrets or personal data.

How the loop is weighted

Junior backend roles weight coding and fundamentals; mid-level roles add a full system design round; senior roles weight design, operational experience and influence. Across levels, the fastest way to stand out is a real story about a production incident you debugged and what you changed afterwards. See API design interviews and microservices interview questions.

Questions to ask the interviewer

Backend candidates learn a lot about a team from three questions: how often they deploy and how rollbacks work, what the last significant incident was and what changed afterwards, and how on-call is shared. Answers reveal operational maturity — whether a role means building on solid foundations or firefighting. They also show the interviewer you think about running software, not just writing it.

Practising

Answer these out loud, in two minutes or less each, and expect a follow-up on every claim. A free AI interview assistant such as CoPilot Interview can run backend questions as a mock interview built from your résumé and score each answer. Do one design question and one fundamentals discussion per day for two weeks, out loud.

Disclosure: CoPilot Interview is our product, so weigh what we say about it accordingly. Everything else on this page applies whichever tool you use, or none.

Frequently asked questions

What questions are asked in a backend engineer interview?

API design, SQL versus NoSQL, indexing and transactions, caching, idempotency, message queues, handling slow dependencies, rate limiting, scaling, authentication and security, monitoring, migrations and a system design question.

How do I prepare for a backend system design round?

Practise classic designs aloud — URL shortener, notification service, rate limiter, feed — covering requirements, estimates, data model, APIs, scaling, caching and failure handling.

What is idempotency in backend systems?

An operation is idempotent if repeating it has the same effect as doing it once. Idempotency keys let servers safely handle retried requests without duplicating side effects.

How important is coding in backend interviews?

Very — most loops include at least one coding round. But design, fundamentals and operational judgement increasingly decide mid-level and senior outcomes.

Practise on real interview questions

Run 145 real interview questions across 10 tracks, answer out loud and see a structured answer to compare with yours. Free, no signup.

Try a practice question