Backend Engineer · interview questions

Backend Engineer interview questions: definition

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

API Design Core 6

  1. What counts as a breaking change in an API?
  2. What is HATEOAS and is it used in practice?
  3. What naming conventions make APIs easier to use?
  4. What security practices apply to API design?
  5. What does an API gateway do, and when do you need one?
  6. What consistency guarantees should an API document?

Authentication Core 12

  1. Most asked What are the most common JWT security pitfalls?
  2. Most asked What is multi-factor authentication, and which factors are strongest?
  3. What are passkeys (WebAuthn) and why are they phishing-resistant?
  4. What is session fixation and how do you prevent it?
  5. What is user enumeration and how do you avoid it?
  6. What is the Backend-for-Frontend (BFF) pattern for authentication in SPAs?
  7. What are OAuth scopes, and are they enough for authorization?
  8. What signals and controls help detect account takeover?
  9. What are sender-constrained tokens (DPoP, mTLS-bound tokens)?
  10. What are the security considerations of passwordless magic links?
  11. What does zero trust mean for authentication?
  12. What is HTTP Basic authentication and when is it acceptable?

Authorization Core 8

  1. Most asked What is IDOR (Insecure Direct Object Reference) and how do you prevent it?
  2. Most asked What is the principle of least privilege and how do you apply it?
  3. What are policy engines like OPA, Cedar or Casbin, and when would you use one?
  4. What is Google Zanzibar and how does it inspire systems like OpenFGA and SpiceDB?
  5. What is role explosion and how do you avoid it?
  6. What is mass assignment and how is it an authorization problem?
  7. What is the 'new enemy' problem in authorization systems?
  8. What is privilege escalation and how do you prevent it?

Caching Core 8

  1. Most asked What is a cache stampede (thundering herd) and how do you prevent it?
  2. Most asked What are the risks of caching personalized or authorized data?
  3. What are cache eviction policies (LRU, LFU, TTL) and how do you choose?
  4. What are the different layers where you can cache in a web system?
  5. What are the risks of write-behind caching?
  6. What must a cache key include for an API response in a multi-tenant app?
  7. What is negative caching and why is it useful?
  8. What is cache warming and when is it needed?

Databases & Transactions Core 11

  1. Most asked What does ACID mean?
  2. Most asked What is the N+1 query problem and how do you fix it?
  3. Most asked What is connection pooling and how do you size a pool?
  4. What is normalization, and when should you denormalize?
  5. What are partitioning and sharding, and what are their trade-offs?
  6. What is the transactional outbox pattern?
  7. What are the pros and cons of using an ORM?
  8. What are the trade-offs of soft deletes?
  9. What is MVCC and how does it affect performance?
  10. What is read-your-writes consistency and how do you provide it?
  11. What are key database security practices?

SQL & Databases Core 1

  1. What are the different types of JOINs in SQL?

Testing Core 12

  1. Most asked What is the test pyramid, and is it still relevant?
  2. What is test-driven development (TDD) and when is it useful?
  3. What is contract testing?
  4. What is contract testing, and when would you use it?
  5. What is exploratory testing, and how do you do it well?
  6. What is property-based testing?
  7. What are snapshot tests, and what are their risks?
  8. What are ephemeral (preview) environments and why use them?
  9. What is chaos engineering?
  10. What should API tests verify?
  11. What are smoke tests?
  12. What is mutation testing?

Messaging & Queues Core 6

  1. Most asked What is the dual-write problem and how do you avoid it?
  2. What is backpressure and how do message systems handle it?
  3. What are event sourcing and CQRS?
  4. What is change data capture (CDC) and how is it used?
  5. What is the inbox pattern?
  6. What is stream processing and when do you need it?

Database Concurrency & Scaling Recommended 2

  1. What risks come with automatic cross-region database failover?
  2. What does `idle in transaction` in pg_stat_activity tell you, and why is it dangerous?

Performance & Scalability Recommended 9

  1. Most asked What are the most common database-related performance problems?
  2. What are common concurrency bottlenecks in web applications?
  3. What are Core Web Vitals and how do you improve them?
  4. What is the 'chatty API' problem and how do you fix it?
  5. What is load shedding?
  6. What is graceful degradation?
  7. What changes when you scale to multiple regions?
  8. What are cold starts and how do you reduce them?
  9. What are common mistakes when benchmarking?

Logging & Observability Recommended 13

  1. Most asked What is structured logging and why is it preferred over plain text logs?
  2. Most asked What is a correlation (request) ID and how do you propagate it?
  3. Most asked What is distributed tracing and how does OpenTelemetry fit in?
  4. Most asked What are the RED, USE and Four Golden Signals methods?
  5. Most asked What are SLIs, SLOs and error budgets?
  6. Most asked What should never be logged, and how do you prevent it?
  7. What are head-based and tail-based sampling in tracing?
  8. What is metric cardinality and why can it break a monitoring system?
  9. What does an error-tracking tool (like Sentry) add beyond logs?
  10. What goes into a good blameless postmortem?
  11. What are synthetic monitoring and real-user monitoring (RUM)?
  12. What is continuous profiling and when is it useful?
  13. What is eBPF and why is it popular for observability?

Web Security & WAF Recommended 22

  1. Most asked What is the OWASP Top 10 and which risks does it currently highlight?
  2. Most asked What is Cross-Site Scripting (XSS) and how do you prevent it?
  3. Most asked What is SQL injection and how do you prevent it?
  4. Most asked What is CSRF and how do you defend against it?
  5. Most asked What is a Web Application Firewall (WAF), and what can and can't it do?
  6. Most asked What is SSRF (Server-Side Request Forgery) and how do you prevent it?
  7. What is Content-Security-Policy and how do you roll it out?
  8. What is CORS, and what are common CORS misconfigurations?
  9. What are common security misconfigurations in web deployments?
  10. What are insecure deserialization vulnerabilities?
  11. What is clickjacking and how do you prevent it?
  12. What are best practices for TLS/HTTPS?
  13. What is threat modeling and how do you run one?
  14. What is an open redirect vulnerability?
  15. What is command injection and how do you prevent it?
  16. What is path traversal and how do you prevent it?
  17. What are software and data integrity failures?
  18. What are common cryptographic failures?
  19. What new security risks do LLM-powered features introduce?
  20. What does the OWASP API Security Top 10 add beyond the web Top 10?
  21. What is XXE (XML External Entity) injection?
  22. What is subdomain takeover?

Web Framework Internals Recommended 6

  1. Most asked What is a request lifecycle, and why should a backend engineer know it for their framework?
  2. Most asked What layers does a request pass through before reaching application code, and how should their timeouts relate?
  3. Most asked What is the NestJS request lifecycle?
  4. Most asked What is the middleware 'onion' model?
  5. What state can leak between requests under Laravel Octane, and how do you prevent it?
  6. What runs after the response is sent, and what is it good for?

Design Patterns Recommended 33

  1. Most asked What is a design pattern, and why are they useful?
  2. Most asked What is dependency injection, and what forms does it take?
  3. Most asked What problem does the Builder pattern solve? Show an example.
  4. Most asked What is the Adapter pattern? Give an example.
  5. Most asked What is the Decorator pattern? How is it different from inheritance?
  6. Most asked What is the Repository pattern, and when is it worth using?
  7. Most asked What are the three categories of Gang of Four design patterns?
  8. Most asked What is the Facade pattern?
  9. Most asked What is MVC, and which design patterns does it combine?
  10. Most asked What is an anti-pattern? Name a few common ones.
  11. What does the Single Responsibility Principle mean in practice?
  12. What kinds of Proxy are there, and what does each do?
  13. What is the State pattern? When would you use it?
  14. What is the Circuit Breaker pattern?
  15. What is the Interface Segregation Principle?
  16. What does "program to an interface, not an implementation" mean?
  17. What are coupling and cohesion, and how do design patterns affect them?
  18. What is the Prototype pattern, and what is the main pitfall when implementing it?
  19. What is the Bridge pattern?
  20. What is the Iterator pattern, and how do modern languages support it?
  21. What is the Template Method pattern?
  22. What is the Unit of Work pattern?
  23. What is CQRS, and how does it relate to the Command pattern?
  24. What is the Middleware (pipeline) pattern used for?
  25. What is the Flyweight pattern, and when is it worth using?
  26. What is the Mediator pattern?
  27. What is the Memento pattern?
  28. What is the Visitor pattern, and what is its main trade-off?
  29. What is the Interpreter pattern?
  30. What is the Null Object pattern, and when can it be harmful?
  31. What is the Specification pattern?
  32. What is the Object Pool pattern, and where do you meet it?
  33. What is the Strangler Fig pattern, and how do design patterns help with it?

Docker Recommended 11

  1. Most asked What are multi-stage builds, and why use them?
  2. Most asked What are Dockerfile best practices for production images?
  3. Most asked What is Docker Compose used for, and how do you handle service start-up order?
  4. Most asked What is a software supply chain attack on containers, and how do you defend against it?
  5. What is BuildKit, and what does docker buildx add?
  6. What does HEALTHCHECK do in a Dockerfile, and do orchestrators use it?
  7. What is the OCI, and how do Docker, containerd, runc and Podman relate?
  8. What is the Docker build context, and why does it matter?
  9. What is Docker Swarm, and why do most teams use Kubernetes or managed services instead?
  10. What are rootless Docker and user namespaces?
  11. What changed with Docker Desktop licensing, and what are the alternatives?

FAANG / Big Tech Recommended 12

  1. Most asked What is dynamic programming? Give an interview example.
  2. Most asked What is consistent hashing and why use it?
  3. Most asked What is idempotency in APIs?
  4. What is the CAP theorem and how do you apply it in practice?
  5. What is Googleyness to you?
  6. What is a CDN and when do you need one?
  7. What is a good behavioral example for Meta's Move Fast?
  8. What questions would you ask your interviewers at FAANG?
  9. What tradeoffs exist between SQL and NoSQL for a shopping cart?
  10. What privacy considerations matter for mobile apps?
  11. What is backpressure in streaming systems?
  12. What is feature flagging and why use it?

Was this page helpful?

Report a mistake