InterviewStack.io LogoInterviewStack.io

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
33 practiced
Tail latency (99.99th percentile) is causing occasional user-facing timeouts. Propose architectural changes at the service layer to reduce tail latency, addressing queueing, concurrency limits, and cascading dependencies in a microservices environment.
EasyTechnical
33 practiced
Define SLO, SLA, and SLI in the context of latency engineering for data pipelines. Give an example SLI and an SLO for a streaming ingestion pipeline that must deliver events to the data lake within 5 seconds 99% of the time, and explain how you'd measure and report this SLI.
MediumSystem Design
49 practiced
Design a caching strategy for a frequently-read user lookup table used by ETL jobs and real-time APIs where updates occur hourly. Requirements: low read latency, eventual consistency within 2 minutes after update, and low memory footprint. Explain cache invalidation, TTL, write-through vs write-back, and monitoring signals to detect stale reads.
EasyTechnical
32 practiced
Explain the difference between partitioning and indexing in databases. Provide concrete examples showing how each affects query latency in a time-series ingestion workload and for high-cardinality joins in a data warehouse.
EasyTechnical
24 practiced
How do you distinguish CPU-bound work from IO-bound work in a data processing job? List measurable indicators (CPU utilization, iowait, disk latency, network RTT), commands/tools to confirm (top, iostat, iotop, perf, strace), and a short checklist you would follow when triaging a slow job.

Unlock Full Question Bank

Get access to hundreds of Latency Analysis & Optimization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.