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
Authentication Core 12
- Most asked What are the most common JWT security pitfalls?
- Most asked What is multi-factor authentication, and which factors are strongest?
- What are passkeys (WebAuthn) and why are they phishing-resistant?
- What is session fixation and how do you prevent it?
- What is user enumeration and how do you avoid it?
- What is the Backend-for-Frontend (BFF) pattern for authentication in SPAs?
- What are OAuth scopes, and are they enough for authorization?
- What signals and controls help detect account takeover?
- What are sender-constrained tokens (DPoP, mTLS-bound tokens)?
- What are the security considerations of passwordless magic links?
- What does zero trust mean for authentication?
- What is HTTP Basic authentication and when is it acceptable?
Authorization Core 8
- Most asked What is IDOR (Insecure Direct Object Reference) and how do you prevent it?
- Most asked What is the principle of least privilege and how do you apply it?
- What are policy engines like OPA, Cedar or Casbin, and when would you use one?
- What is Google Zanzibar and how does it inspire systems like OpenFGA and SpiceDB?
- What is role explosion and how do you avoid it?
- What is mass assignment and how is it an authorization problem?
- What is the 'new enemy' problem in authorization systems?
- What is privilege escalation and how do you prevent it?
Caching Core 8
- Most asked What is a cache stampede (thundering herd) and how do you prevent it?
- Most asked What are the risks of caching personalized or authorized data?
- What are cache eviction policies (LRU, LFU, TTL) and how do you choose?
- What are the different layers where you can cache in a web system?
- What are the risks of write-behind caching?
- What must a cache key include for an API response in a multi-tenant app?
- What is negative caching and why is it useful?
- What is cache warming and when is it needed?
Databases & Transactions Core 11
- Most asked What does ACID mean?
- Most asked What is the N+1 query problem and how do you fix it?
- Most asked What is connection pooling and how do you size a pool?
- What is normalization, and when should you denormalize?
- What are partitioning and sharding, and what are their trade-offs?
- What is the transactional outbox pattern?
- What are the pros and cons of using an ORM?
- What are the trade-offs of soft deletes?
- What is MVCC and how does it affect performance?
- What is read-your-writes consistency and how do you provide it?
- What are key database security practices?
SQL & Databases Core 1
Testing Core 12
- Most asked What is the test pyramid, and is it still relevant?
- What is test-driven development (TDD) and when is it useful?
- What is contract testing?
- What is contract testing, and when would you use it?
- What is exploratory testing, and how do you do it well?
- What is property-based testing?
- What are snapshot tests, and what are their risks?
- What are ephemeral (preview) environments and why use them?
- What is chaos engineering?
- What should API tests verify?
- What are smoke tests?
- What is mutation testing?
Messaging & Queues Core 6
Database Concurrency & Scaling Recommended 2
Performance & Scalability Recommended 9
- Most asked What are the most common database-related performance problems?
- What are common concurrency bottlenecks in web applications?
- What are Core Web Vitals and how do you improve them?
- What is the 'chatty API' problem and how do you fix it?
- What is load shedding?
- What is graceful degradation?
- What changes when you scale to multiple regions?
- What are cold starts and how do you reduce them?
- What are common mistakes when benchmarking?
Logging & Observability Recommended 13
- Most asked What is structured logging and why is it preferred over plain text logs?
- Most asked What is a correlation (request) ID and how do you propagate it?
- Most asked What is distributed tracing and how does OpenTelemetry fit in?
- Most asked What are the RED, USE and Four Golden Signals methods?
- Most asked What are SLIs, SLOs and error budgets?
- Most asked What should never be logged, and how do you prevent it?
- What are head-based and tail-based sampling in tracing?
- What is metric cardinality and why can it break a monitoring system?
- What does an error-tracking tool (like Sentry) add beyond logs?
- What goes into a good blameless postmortem?
- What are synthetic monitoring and real-user monitoring (RUM)?
- What is continuous profiling and when is it useful?
- What is eBPF and why is it popular for observability?
Web Security & WAF Recommended 22
- Most asked What is the OWASP Top 10 and which risks does it currently highlight?
- Most asked What is Cross-Site Scripting (XSS) and how do you prevent it?
- Most asked What is SQL injection and how do you prevent it?
- Most asked What is CSRF and how do you defend against it?
- Most asked What is a Web Application Firewall (WAF), and what can and can't it do?
- Most asked What is SSRF (Server-Side Request Forgery) and how do you prevent it?
- What is Content-Security-Policy and how do you roll it out?
- What is CORS, and what are common CORS misconfigurations?
- What are common security misconfigurations in web deployments?
- What are insecure deserialization vulnerabilities?
- What is clickjacking and how do you prevent it?
- What are best practices for TLS/HTTPS?
- What is threat modeling and how do you run one?
- What is an open redirect vulnerability?
- What is command injection and how do you prevent it?
- What is path traversal and how do you prevent it?
- What are software and data integrity failures?
- What are common cryptographic failures?
- What new security risks do LLM-powered features introduce?
- What does the OWASP API Security Top 10 add beyond the web Top 10?
- What is XXE (XML External Entity) injection?
- What is subdomain takeover?
Web Framework Internals Recommended 6
- Most asked What is a request lifecycle, and why should a backend engineer know it for their framework?
- Most asked What layers does a request pass through before reaching application code, and how should their timeouts relate?
- Most asked What is the NestJS request lifecycle?
- Most asked What is the middleware 'onion' model?
- What state can leak between requests under Laravel Octane, and how do you prevent it?
- What runs after the response is sent, and what is it good for?
Design Patterns Recommended 33
- Most asked What is a design pattern, and why are they useful?
- Most asked What is dependency injection, and what forms does it take?
- Most asked What problem does the Builder pattern solve? Show an example.
- Most asked What is the Adapter pattern? Give an example.
- Most asked What is the Decorator pattern? How is it different from inheritance?
- Most asked What is the Repository pattern, and when is it worth using?
- Most asked What are the three categories of Gang of Four design patterns?
- Most asked What is the Facade pattern?
- Most asked What is MVC, and which design patterns does it combine?
- Most asked What is an anti-pattern? Name a few common ones.
- What does the Single Responsibility Principle mean in practice?
- What kinds of Proxy are there, and what does each do?
- What is the State pattern? When would you use it?
- What is the Circuit Breaker pattern?
- What is the Interface Segregation Principle?
- What does "program to an interface, not an implementation" mean?
- What are coupling and cohesion, and how do design patterns affect them?
- What is the Prototype pattern, and what is the main pitfall when implementing it?
- What is the Bridge pattern?
- What is the Iterator pattern, and how do modern languages support it?
- What is the Template Method pattern?
- What is the Unit of Work pattern?
- What is CQRS, and how does it relate to the Command pattern?
- What is the Middleware (pipeline) pattern used for?
- What is the Flyweight pattern, and when is it worth using?
- What is the Mediator pattern?
- What is the Memento pattern?
- What is the Visitor pattern, and what is its main trade-off?
- What is the Interpreter pattern?
- What is the Null Object pattern, and when can it be harmful?
- What is the Specification pattern?
- What is the Object Pool pattern, and where do you meet it?
- What is the Strangler Fig pattern, and how do design patterns help with it?
Docker Recommended 11
- Most asked What are multi-stage builds, and why use them?
- Most asked What are Dockerfile best practices for production images?
- Most asked What is Docker Compose used for, and how do you handle service start-up order?
- Most asked What is a software supply chain attack on containers, and how do you defend against it?
- What is BuildKit, and what does docker buildx add?
- What does HEALTHCHECK do in a Dockerfile, and do orchestrators use it?
- What is the OCI, and how do Docker, containerd, runc and Podman relate?
- What is the Docker build context, and why does it matter?
- What is Docker Swarm, and why do most teams use Kubernetes or managed services instead?
- What are rootless Docker and user namespaces?
- What changed with Docker Desktop licensing, and what are the alternatives?
FAANG / Big Tech Recommended 12
- Most asked What is dynamic programming? Give an interview example.
- Most asked What is consistent hashing and why use it?
- Most asked What is idempotency in APIs?
- What is the CAP theorem and how do you apply it in practice?
- What is Googleyness to you?
- What is a CDN and when do you need one?
- What is a good behavioral example for Meta's Move Fast?
- What questions would you ask your interviewers at FAANG?
- What tradeoffs exist between SQL and NoSQL for a shopping cart?
- What privacy considerations matter for mobile apps?
- What is backpressure in streaming systems?
- What is feature flagging and why use it?