CS FundamentalsVery hardProduct-company SRE interview

20 response times (ms) are: 95, 97, 98, 99, 100, 101, 102, 103, 105, 108, 110, 112, 115, 120, 125, 130, 140, 300, 450, 900. Using the nearest-rank method for percentiles, what are the mean, median and 95th percentile?

  1. A. Mean 109, median 175.5, p95 900
  2. B. Mean 175.5, median 105, p95 300
  3. C. Mean 175.5, median 109, p95 450
  4. D. Mean 175.5, median 109, p95 900

Correct answer: C. Mean 175.5, median 109, p95 450

Mean = 3,510/20 = 175.5; median = (108 + 110)/2 = 109; p95 = value at rank ceil(0.95 x 20) = 19, which is 450. The mean is pulled up by outliers, which is why SLOs use percentiles.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic