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?
- A. Mean 109, median 175.5, p95 900
- B. Mean 175.5, median 105, p95 300
- C. Mean 175.5, median 109, p95 450
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A tester re-checks a defect marked 'Fixed' and finds it still occurs. To which state does the defect normally move in a standard defect…
- Which pairing of severity and priority is most appropriate? Defect X: the company's name is misspelt on the home page of the live site…
- A team's suite has 50 unit tests, 200 integration tests and 1,500 slow UI end-to-end tests, and builds take hours. Which anti-pattern is…
- An Orders service consumes a Pricing service's API. The teams want to catch breaking API changes before deployment without spinning up…
- Match each test double. P: an in-memory database used instead of PostgreSQL. Q: an object that returns a canned exchange rate of 83.0…
- Instead of hand-picking examples, a developer states that for any list xs, sorted(sorted(xs)) == sorted(xs) and len(sorted(xs)) ==…