Latency Analysis & Optimization Questions
Understanding and reducing response time across the request path, including tail latency, latency budgets, and critical-path analysis. Covers where latency accumulates (compute, I/O, serialization, network hops, queuing), percentile-based reasoning (p50/p95/p99), and targeted techniques to shave the dominant contributors. Focuses on end-to-end latency as an engineered property rather than an incidental one.
HardTechnical
49 practiced
You operate microservices on Kubernetes and observe suboptimal network throughput and high p99 request latency. Propose TCP and networking tunings (sysctl and socket options like rmem/wmem, tcp_tw_reuse, SO_REUSEPORT), Kubernetes-level changes (CNI MTU, proxy or service mesh tuning, daemonset params), and validation steps for each change (benchmarks and metrics to capture). Discuss safety and rollback strategies.
HardTechnical
32 practiced
Design a streaming analytics pipeline to process 200k events/sec with end-to-end processing latency under 200ms. Choose between Kafka, Pulsar, Kinesis, or alternatives and justify your choice. Describe partitioning strategies, consumer scaling, stateful processing options (local state stores vs remote), processing guarantees (exactly-once vs at-least-once), checkpointing, and backpressure handling.
EasyTechnical
33 practiced
Describe what p50, p95 and p99 percentiles mean for request latency and why p99 is often more important for user experience. Given latency samples (ms): [10, 20, 30, 1000, 1100], show how you'd compute p50, p95 and p99 approximately from the ordered list and interpret each result in terms of user impact.
EasyTechnical
29 practiced
Explain why averages can be misleading for latency-sensitive services and why tail percentiles (p95/p99/p999) matter. Provide concrete examples where optimizing average latency could degrade user experience and outline approaches focused specifically on reducing tail latency.
EasyTechnical
44 practiced
Describe how you would determine whether a production service is CPU-bound or I/O-bound. List the metrics, tools, and signals you would check (e.g., CPU utilization, iowait, disk/network metrics, syscall tracing, flamegraphs) and describe the actions you'd take for each diagnosis (e.g., optimize code path vs increase concurrency vs tune disk/network).
Unlock Full Question Bank
Get access to hundreds of Latency Analysis & Optimization interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.