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.
-
Most asked How do you approach a performance problem methodically?
Define the goal and measure (which metric, which percentile, under what load), reproduce, profile to find where time is actually spent (traces, CPU/memory profilers, query analysis), fix the biggest…
-
How do you load test a system effectively?
Model realistic traffic (user journeys, data distributions, think time), use a production-like environment and dataset, ramp load gradually to find the knee where latency degrades, run soak tests…
-
How would you scale a read-heavy system?
Add caching layers (CDN, application cache), read replicas, denormalized read models or search indexes, pagination and precomputation, while keeping writes on the primary and managing staleness.
-
How would you scale a write-heavy system?
Batch and buffer writes (queues, write-behind), partition/shard by key, use append-friendly storage (log-structured, time-series DBs), reduce indexes on hot tables, use asynchronous processing for…
-
How do you reduce payload sizes in web applications?
Compress responses (Brotli/gzip), send only needed fields (pagination, field selection), use efficient formats for internal APIs (Protobuf), optimize images (modern formats, responsive sizes), and…
-
How do you do capacity planning?
Measure current utilization and per-request resource costs, forecast growth (including seasonal peaks and launches), load test to find per-instance limits, add headroom for failures (N+1 redundancy)…