DevOps Engineer interview question · Most asked
Your Kubernetes-based ecommerce site goes down during peak traffic. Walk through your first 15 minutes.
Scenario Asked in DevOps Engineer · Site Reliability Engineer (SRE) interviews
Summary
Minutes 0-5: acknowledge, declare an incident, open a channel and assign an incident commander, and confirm impact from user-facing signals. Minutes 5-10: check what changed (deploys, config, traffic, dependencies) and look for the failing layer. Minutes 10-15: apply the fastest safe mitigation (roll back, scale out, shed load, fail over) and post regular status updates.
Longer Answer
- Roles: incident commander (decisions), operations lead (hands on keyboard), communications lead (status page, support, stakeholders). Don't let one person do all three.
- Impact: checkout success rate, error rate and latency at the edge; synthetic checks; CDN and load balancer metrics.
- What changed: deploy history, feature flags, config changes, a marketing campaign driving traffic, a cloud provider incident.
- Layer by layer: DNS/CDN → load balancer/ingress → pods (readiness, restarts, CPU throttling) → nodes (capacity, autoscaler) → databases and caches (connections, locks, replica lag) → third parties (payments).
- Mitigations: roll back; scale replicas and nodes (watch database connection limits); turn off expensive features with flags; enable a degraded mode (static catalogue, queue orders); rate-limit bots.
- Communication: first update within 10-15 minutes, then on a fixed cadence, even if it's "still investigating".
- After: timeline, blameless postmortem, action items (load testing, autoscaling limits, capacity reservations).
Key Points
- Declare the incident and assign roles.
- Measure user impact, not just system health.
- Find what changed; go layer by layer.
- Mitigate fast; communicate on a cadence.
- Blameless postmortem.
Explanation
What interviewers look for
Incident leadership and communication as much as technical triage; mitigation before root cause.
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 ecommerce site runs 30 microservices on Kubernetes. After a deployment, customers start getting HTTP 503 errors. How do you investigate and resolve it?
- 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?