InterviewStack.io LogoInterviewStack.io

Kubernetes Troubleshooting and Observability Questions

Kubernetes specific observability and debugging skills for clusters and containerized workloads. Topics include kubectl debugging commands, interpreting pod and node events, container and node metrics, resource requests and limits, log aggregation for pods, interpreting scheduler and kubelet behavior, networking within clusters, operator and control plane issues, and integrating Prometheus, Fluentd, Loki, and tracing into Kubernetes. Emphasis on diagnosing pod failures, resource contention, networking problems, and cluster level observability at scale.

EasyTechnical
45 practiced
Describe the kubectl commands and rollout strategies you would use to perform a safe rolling restart of a Deployment, view rollout history, and rollback to a previous revision. Include examples using kubectl and explain how you would avoid causing cascading failures during a restart of a consumer‑facing service.
MediumTechnical
39 practiced
Describe the key steps to instrument an existing microservice running in Kubernetes with OpenTelemetry traces so it appears in a distributed trace system (e.g., Jaeger/Grafana Tempo). Include code/library changes, Kubernetes deployment changes (sidecar vs collector), sampling strategy, and configuration needed to correlate traces with Prometheus metrics and pod logs.
MediumTechnical
39 practiced
Write a Bash script (or Python) that fetches logs for all pods in a given Deployment namespace created in the last 15 minutes and aggregates them into a single file per pod. The script should accept arguments: namespace and deployment name. Outline error handling for Pods that crash immediately and for containers with no logs.
EasyTechnical
39 practiced
Explain how labels and selectors affect service discovery and traffic routing in Kubernetes. Provide an example where a typo or wrong selector causes traffic to disappear from a service and list kubectl commands to validate and fix the issue safely.
MediumTechnical
41 practiced
Write a kubectl-friendly debugging checklist and a small helper (pseudo-code or kubectl alias) that an SRE can use to collect a standardized troubleshooting bundle when a pod fails: include pod describe, events, logs (current and previous), node info, and top resource consumers. The helper should minimize manual steps for on-call use.

Unlock Full Question Bank

Get access to hundreds of Kubernetes Troubleshooting and Observability interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.