You've been asked to set the performance acceptance criteria for a new checkout API before it ships. How do you decide what numbers to commit to and how to load-test against them, rather than just picking a round latency target out of the air?

technical-conceptual · Senior level · software-engineering

What the interviewer is really asking

Assesses whether the candidate can derive performance targets from real demand and business impact (percentile latency at a projected arrival rate) and design a representative test, instead of asserting an arbitrary threshold disconnected from production traffic.

What to say

What to avoid

Example answers

Strong: I'd anchor the targets in demand and impact: pull projected and peak requests/sec, find the latency the checkout flow and its downstream timeouts can tolerate, and commit to a percentile-at-load SLO like p99 under 300ms at peak rps with an error rate under 0.1%. Then I'd test it representatively — realistic endpoint mix, production-sized data, open-model injection at the target arrival rate — and run ramp, peak, a stress multiple to find the knee, and a soak for leaks. Pass/fail is the committed percentile and error budget, not the average or one clean run.

Weak: I'd target sub-200ms response time since that's the standard for a good API, then run a load test ramping up users until the average response time crosses 200ms and call that the limit.

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.