Interview Prep/SRE & Reliability/Capacity & Load Testing

Your k6 test reports 0% errors but the service's own metrics show 3% 5xx during the test.

AdvancedScenarioCapacity & Load Testing
Answer

Situation read → The two are measuring different things: k6 may treat some statuses as success, retries may be hiding errors, or k6 traffic is not the only traffic.

What I'd do →

  1. Check k6 responseCallback: if set to accept 5xx, http_req_failed will not count them.
  2. Check if a gateway or service mesh retries failed requests between k6 and the service.
  3. Check whether other traffic (background jobs, other clients) is causing the 5xx.
  4. Tag k6 requests (User-Agent or a header) and filter server metrics by it.

Why → Client-side and server-side numbers must reconcile before you trust either.

Interview tip → Mention mesh retries hiding errors; it is a real production surprise.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Capacity & Load Testing