Backend Engineer · interview questions

Backend Engineer interview questions: why

From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.

API Design Core 1

  1. Why use OpenAPI (and contract-first design)?

Authentication Core 1

  1. Why do cookie-based sessions need CSRF protection, and how do you implement it?

Authorization Core 1

  1. Why should code check permissions rather than role names?

Caching Core 4

  1. Most asked Why is cache invalidation hard, and what strategies help?
  2. Why can a Redis failover bring back deleted (stale) cache entries?
  3. Why are database query caches often disabled or removed?
  4. Why add jitter to cache TTLs?

Databases & Transactions Core 2

  1. Why should data integrity be enforced in the database, not only in application code?
  2. Why shouldn't analytics queries run on the production OLTP database?

SQL & Databases Core 1

  1. Why are indexes important in a database?

Messaging & Queues Core 1

  1. Most asked Why use message queues, and what problems do they solve?

Database Concurrency & Scaling Recommended 4

  1. Most asked Why shouldn't you call a payment API inside a database transaction?
  2. Why do 'get or create' operations deadlock on MySQL under load?
  3. Why does changing `id % 8` to `id % 12` make resharding painful, and what's the alternative?
  4. Why might you avoid running reports on the primary database?

Performance & Scalability Recommended 3

  1. Most asked Why are timeouts, retries and circuit breakers essential for performance and reliability?
  2. Why should application servers be stateless, and where does state go?
  3. Why does tail latency matter more as systems fan out?

Logging & Observability Recommended 2

  1. Why should you track latency percentiles instead of averages?
  2. Why should you monitor business metrics, not just technical ones?

Web Security & WAF Recommended 1

  1. Why are security logging and monitoring failures in the OWASP Top 10?

Design Patterns Recommended 2

  1. Most asked Why is composition often preferred over inheritance?
  2. Why is a service locator considered worse than dependency injection?

Docker Recommended 2

  1. Most asked Why does PID 1 matter in containers, and what problems can it cause?
  2. Why is mounting the Docker socket into a container dangerous?

Was this page helpful?

Report a mistake