Production Incident Diagnosis and Distributed Systems Troubleshooting Questions

Debugging distributed systems under fire: diagnosing latency and reliability regressions, root-causing across service boundaries, reading traces and metrics during an incident, and reasoning about complex production failures. Covers the investigative method for hard-to-reproduce, multi-service problems. The operational counterpart to resilient design.

MediumTechnical
67 practiced

A downstream third-party API starts rate-limiting you, and your worker processes retry aggressively, causing a queue buildup that exhausts memory and leads to out-of-memory errors and service restarts. Describe the immediate containment actions to stop the cascading failures, and propose a longer-term architecture change to prevent similar incidents.

HardTechnical
52 practiced

Monitoring shows that adding more instances of a microservice increased average and p95 latency instead of reducing it. Walk through a debugging checklist explaining possible causes (for example shared-resource contention, DNS or iptables issues, connection-pool exhaustion, or leader-election thrashing), how you'd gather evidence for each, and the remedial action for each cause.

MediumTechnical
73 practiced

Given this simplified trace for a single request, identify where the latency spike originates and why:

TraceID: abc123
Spans:

  • gateway (api-gw): duration 50ms
  • auth (service-b): duration 5ms
  • payments (service-c): duration 400ms
    • db-proxy (service-d): duration 380ms
      • db-query: duration 370ms

Explain the steps you would take to confirm the database is the true root cause and what further data you'd collect before concluding.

HardTechnical
54 practiced

Users report high p99 latency on a critical API. Propose a comprehensive instrumentation and analysis plan to determine whether the cause is GC pauses, lock contention, network wait, or downstream calls. Specify which metrics, profilers, and span attributes you would collect, and the order in which you would investigate them.

HardTechnical
65 practiced

Your team gets reports of increased error-budget consumption for an API during a marketing campaign surge. How would you triage whether the consumption is due to legitimate increased load, a bug, or malicious traffic? Describe the telemetry and controls you'd use to distinguish these three causes and the immediate mitigation you'd apply for each.

Unlock Full Question Bank

Get access to all Production Incident Diagnosis and Distributed Systems Troubleshooting interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.