DevOps Engineer interview question · Most asked

Your ecommerce site runs 30 microservices on Kubernetes. After a deployment, customers start getting HTTP 503 errors. How do you investigate and resolve it?

Scenario Asked in DevOps Engineer · Site Reliability Engineer (SRE) interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Treat it as an incident: confirm scope from the edge inward, correlate with the deployment, and roll back early if the new release is the likely cause. A 503 from an ingress usually means the Service behind it has no ready endpoints, so pod readiness is the first thing to check.

Longer Answer

  1. Scope: which URLs and services return 503, all users or some, since when? Dashboards and ingress logs (status by upstream).
  2. Correlate: kubectl rollout history and deploy markers; which services changed in the release?
  3. Ingress → Service → Pods: ingress controller logs name the upstream; kubectl get endpoints <svc> (or EndpointSlices) empty means no pod is Ready; kubectl get pods, describe for failed readiness probes, CrashLoopBackOff, OOMKilled, image pull errors.
  4. Config drift in the release: changed Service selector or port names, a new required environment variable or secret, a probe path that no longer exists, a migration the old pods can't handle.
  5. Dependencies: a downstream service or database failing makes readiness probes that check dependencies fail everywhere at once (a reason to keep readiness probes shallow).
  6. Capacity: pods Pending because of resource requests, HPA at max, node pressure.
  7. Mitigate: kubectl rollout undo or revert in Git (GitOps), scale up, or shift traffic back if using canaries. Restore service first, then find the root cause.
  8. Afterwards: postmortem; add progressive delivery (canary with automatic analysis) and alerts on endpoint availability.

Key Points

  • 503 at the ingress usually means no ready endpoints.
  • Correlate with the deploy; roll back early.
  • Check selectors, ports, probes, config and dependencies.
  • Restore service first, then root-cause.
  • Prevent with canaries and shallow readiness probes.

Explanation

What interviewers look for

A calm, ordered investigation (edge, service, pods, dependencies), knowing what a 503 means in Kubernetes, and prioritising mitigation.

More DevOps Engineer questions

← All DevOps Engineer questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake