Why a 1 Percent Slow Leaf Rate Hurts Most Fan-Out Queries

Last updated: November 29, 2026

Quick Overview

Each leaf server in a Google serving tree exceeds 1 second with probability 0.01, independently. What fraction of user requests that fan out to 100 leaves will be slow, and how many leaves can you fan out to while keeping slow requests below 5%?

Google
Statistics & Math
Software Engineer
Google
November 29, 2026
Software Engineer
Technical Screen
Statistics & Math
Easy

0

0

0 solved


Each leaf server in a Google serving tree exceeds 1 second with probability 0.01, independently. What fraction of user requests that fan out to 100 leaves will be slow, and how many leaves can you fan out to while keeping slow requests below 5%?

This is the classic tail-at-scale calculation, a short question in Google SWE and SRE screens. The interviewer checks the complement rule, the quick approximation, and whether you can reason about which percentile each leaf must meet.

What the Interviewer Expects
  • Use the complement: 1 - 0.99^n
  • Compute about 63% for n = 100
  • Solve for n with 5% budget, about 5 leaves
  • Translate to a required per-leaf percentile
  • Mention independence is an assumption
Key Topics to Cover
complement rule
independence
tail latency
percentiles
fan-out
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What per-leaf slow probability is needed so a 100-leaf request is slow under 1% of the time?
  • How do request hedging and tied requests change this?
  • What happens if slowness is correlated across leaves?
  • How would you measure this in production?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

A request is slow if any one of nn leaves is slow. Leaves are independent with slow probability p=0.01p = 0.01. We want P(slow request)P(\text{slow request}) for n=100n = 100 and the largest nn with P≤0.05P \le 0.05....

Approach

The request is fast only if all leaves are fast, so P(slow)=1−(1−p)nP(\text{slow}) = 1 - (1-p)^n. For small pp, 1−(1−p)n≈1−e−np1 - (1-p)^n \approx 1 - e^{-np}, and when npnp is small it is about npnp....


Submit Your Answer
Markdown supported