A request that normally takes 50ms intermittently takes 5 seconds, with no error and the backend showing nothing unusual. Walk me through how you'd diagnose this across the network path.

technical-conceptual · Senior level · software-engineering

What the interviewer is really asking

Assesses systematic network debugging at senior level — distinguishing client, DNS, connection-setup, TLS, queueing, and retransmission causes — and the discipline to localize the latency with evidence rather than guessing.

What to say

What to avoid

Example answers

Strong: Since the backend looks clean, I'd suspect the path or connection setup. First I'd break the 5s into DNS, connect, TLS, and TTFB from request timings or a capture. A retransmission timeout shows up near a 1-second multiple; connection-pool exhaustion shows up as repeated fresh TLS handshakes. I'd then check if the slow calls cluster on one AZ or NAT path and look at LB queue depth — only then change timeouts, and never with a blind retry that could amplify the problem.

Weak: If it's intermittent it's probably just network flakiness, so I'd add a retry with a higher timeout so the slow ones eventually succeed and stop paging us.

Want questions matched to your role? Paste a job title, job description, or CV and get a personalized set, or go Pro to unlock the full bank.