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.
MediumTechnical
25 practiced
An endpoint's p95 latency is 800ms and the product goal is 400ms. Propose a measurable plan to reduce latency by 50%: describe how you'd profile the endpoint, identify likely hotspots, propose at least three optimizations (with trade-offs), and explain how you'd present the options and estimated impact to product and SREs.
MediumTechnical
29 practiced
A profile API shows increased 99.9th percentile latency under load. Outline an approach to diagnose and mitigate high tail latency: instrumentation you would add, experiments to reproduce the tail, prioritization of fixes, and candidate mitigations (caching, circuit-breakers, prioritized queues, and load-shedding).
MediumTechnical
26 practiced
A service increased its p95 latency for a key endpoint. Outline a step-by-step investigation plan: what metrics, logs, and traces you would examine; experiments to run in staging or production to isolate the cause; and quick mitigations you would apply to reduce p95 while you work on a permanent fix.
EasyTechnical
30 practiced
Implement an LRU cache class in Python with get(key) and put(key, value) operations supporting a fixed capacity and O(1) semantics. The implementation can be single-threaded; explain how your design achieves O(1) and outline tests to validate correctness under heavy load.
EasyBehavioral
34 practiced
Tell me about a time when you improved performance of a service. Describe the initial problem, how you measured a baseline, the specific changes you implemented, how you validated improvements with metrics, and the measurable business impact after deployment.
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.