Users report that one service on Kubernetes became slow since this morning. Walk me through how you would investigate.
What the interviewer wants to hear
- Confirm impact and scope with latency metrics and SLO dashboards
- Check recent changes: deploys, config, node or cluster events
- Use traces to find which span or dependency is slow
- Check resources: CPU throttling, memory, restarts, node pressure
- Check dependencies such as database, DNS and network
- Mitigate first, for example rollback or scale, then find root cause
Model answer
First I confirm and size the problem: which endpoints are slow, from what percentile, since when, and for which users, using latency histograms and the SLO dashboard. Next I look at what changed around that time: deploys, config or feature flag changes, node upgrades, autoscaling events. If a deploy lines up and impact is serious, I roll back first and investigate after. To locate the slowness I open traces for slow requests and see which span grows, for example a database query, an external API or time spent in the service itself. Then I check the Pods: CPU throttling, memory near limits, restarts, garbage collection, and whether they are spread across healthy nodes. I also check dependencies such as database load and connection pools, DNS latency and network errors. Once service is stable, I write up the cause and add an alert or dashboard that would have caught it sooner.
Can you answer it under time pressure?
Take a timed medium round and get scored on every answer.
More medium DevOps Engineer questions
- How do you manage secrets such as database passwords and API keys across CI/CD pipelines and Kubernetes?
- A Pod is stuck in CrashLoopBackOff after a deployment. How do you troubleshoot it?
- Compare rolling, blue-green and canary deployments. How do you decide which to use?
- Developers complain that the CI pipeline takes 40 minutes. How would you make it faster?
- How do you structure Terraform code for multiple environments like dev, staging and production?
- Your team is burning out from on-call pages. How would you redesign alerting and the on-call process?
- When would you package Kubernetes manifests with Helm and when with Kustomize? Can they be combined?
- How would you promote a release from dev to staging to production in a GitOps setup with Argo CD?
- How do you include database schema migrations in a continuous delivery pipeline without causing downtime?