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
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
- Scope: which URLs and services return 503, all users or some, since when? Dashboards and ingress logs (status by upstream).
- Correlate:
kubectl rollout historyand deploy markers; which services changed in the release? - Ingress → Service → Pods: ingress controller logs name the upstream;
kubectl get endpoints <svc>(or EndpointSlices) empty means no pod is Ready;kubectl get pods,describefor failed readiness probes, CrashLoopBackOff, OOMKilled, image pull errors. - 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.
- Dependencies: a downstream service or database failing makes readiness probes that check dependencies fail everywhere at once (a reason to keep readiness probes shallow).
- Capacity: pods Pending because of resource requests, HPA at max, node pressure.
- Mitigate:
kubectl rollout undoor revert in Git (GitOps), scale up, or shift traffic back if using canaries. Restore service first, then find the root cause. - 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
- Every deployment produces a burst of 502s. What do you check?
- After a release, checkout becomes slow. How do you use traces, JVM metrics, connection pool metrics and database monitoring to find the cause?
- Pods keep restarting with OOMKilled under load. How do you investigate and fix it?
- What happens when you type a URL into a browser and press Enter?
- Your Kubernetes-based ecommerce site goes down during peak traffic. Walk through your first 15 minutes.
- Design an end-to-end CI/CD and GitOps setup for 50 microservices, with testing, security scanning, artifact management and production deployment.
- A rollback after a release made the outage worse because the database had already been migrated. How do you design releases so rollbacks are always safe?
- How do you implement automated rollback in a deployment pipeline?