Interview Q&A · questions with model answers

Performance & Scalability Interview Questions

Part of the study plan for: Site Reliability Engineer (SRE) · Backend Engineer · Frontend Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked What is the difference between vertical and horizontal scaling?

    Vertical scaling adds resources (CPU, RAM) to one machine; horizontal scaling adds more machines behind a load balancer. Vertical is simpler but has hard limits and a single point of failure;…

  2. Most asked What's the difference between latency and throughput?

    Latency is how long one operation takes (e.g., p99 request time); throughput is how many operations complete per unit of time (requests/second). Improving one doesn't automatically improve the…

  3. When does asynchronous I/O improve performance, and when doesn't it?

    Async I/O improves throughput when requests spend most time waiting on network or disk (many concurrent slow calls), because one thread can multiplex many operations. It doesn't help CPU-bound work,…

  4. How can adding caches or indexes hurt performance?

    Indexes slow writes and use memory; caches add invalidation complexity, memory overhead, stale data and failure modes (stampedes, cold starts). Each optimization has costs that must be measured…

Was this page helpful?

Report a mistake