Kubernetes interview questions often ask you to explain an object, then use that knowledge to investigate a failure. A useful answer connects the symptom to a specific observation, explains what that observation rules out, and ends with evidence that the application recovered.

This guide contains original, fictional practice questions. The command output is constructed teaching material, not a recording of a production incident or a company's interview. Try each question before reading its answer. Commands assume a Linux shell, a recent Kubernetes cluster, and a compatible kubectl client. Names refer to an imaginary practice namespace; substitute your own sandbox objects. Access to logs and objects depends on your cluster permissions. These examples were checked against documentation, not executed against a live cluster.

If Kubernetes is new to you, a cluster is a group of machines that run applications. A node is one of those machines. A Pod holds one or more containers, which run the application's processes. A namespace groups resources inside the cluster.

1. What is the difference between a Pod, Deployment, and Service?

A Pod is an instance of running application containers with shared networking and storage resources. A Deployment manages ReplicaSets to maintain a desired number of Pods and roll out changes. A Service gives clients a stable way to reach a changing set of backends. For a typical selector-based Service, labels determine which Pods are candidates.

Suppose a web application needs three copies. A Deployment requests three replicas; its ReplicaSet maintains those Pods. When a Pod is replaced, its IP address can change. Clients connect through the Service rather than tracking each replacement themselves.

Follow-up: Does three replicas guarantee availability? No. Placement, available capacity, dependencies, readiness, and application behavior still matter. Three Pods on a single failing node share that failure. Explain the particular failure you want the design to tolerate.

2. A Pod is Pending. What do you inspect first?

You see a new API Pod remain Pending. Start with its description:

kubectl -n practice describe pod api-7b8c9d-x2k4m

Illustrative event:

Warning  FailedScheduling  default-scheduler
0/3 nodes are available: 3 Insufficient cpu.

This event identifies a scheduling constraint. Compare the Pod's CPU request, the amount used for scheduling, with available allocatable resources and the requests already reserved on candidate nodes. Low current CPU usage does not establish that room exists for another request.

kubectl -n practice get pod api-7b8c9d-x2k4m -o yaml
kubectl describe nodes

Possible actions include supplying capacity or correcting an oversized request after measuring what the application needs. Reducing a request without that evidence can overpack nodes. If the event instead mentions taints, affinity, or a volume, investigate that constraint. Pending can also cover a Pod that has been scheduled but is still setting up; the phase alone does not identify the blocked step.

Verify that the Pod is scheduled and becomes Ready, then check a representative application request. A successful scheduling event only proves placement.

3. What does CrashLoopBackOff tell you?

It tells you that Kubernetes is delaying another restart after repeated container failures. You still need the reason the container stops. Identify the container and inspect its previous attempt:

kubectl -n practice describe pod worker-6f7d8c-q9v2n
kubectl -n practice logs worker-6f7d8c-q9v2n -c worker --previous --tail=100

Constructed evidence:

Last State: Terminated
  Reason: Error
  Exit Code: 1

startup failed: required setting QUEUE_URL is missing

The startup message supports a configuration failure. Check the workload's configuration references and whether the application expects the same setting name. Do not expose Secret values while sharing your investigation. An unavailable queue remains a separate possibility only after the worker can start and attempt a connection.

Correct the configuration through the workload's normal release process. Confirm that the new container starts, its restart count stays stable during a suitable observation period, and a test job completes. Deleting the Pod without correcting the template would recreate the same problem. Previous logs can be unavailable after log rotation or Pod replacement; capture relevant evidence early.

The CrashLoopBackOff guide expands this investigation with a downloadable lab and a tested recovery.

4. A container was OOMKilled. Should you increase its memory limit?

An out-of-memory termination tells you to investigate memory pressure. Inspect the terminated container's reason and its resource settings, then correlate historical memory usage, traffic, and node events with the termination time.

kubectl -n practice describe pod api-7b8c9d-r5j6p
kubectl -n practice get deployment api -o yaml
kubectl -n practice top pod api-7b8c9d-r5j6p --containers

kubectl top requires the cluster's resource metrics pipeline and shows recent usage. A restarted container's current usage cannot reconstruct the peak that killed its predecessor. An exit code of 137 alone also does not prove an out-of-memory kill; inspect the recorded termination reason and supporting events.

If measured legitimate demand exceeds the configured limit, a capacity adjustment may be appropriate. If memory grows without bound, investigate a leak or unbounded work. Consider node capacity before raising limits. Verify the change under representative load and watch both memory and request failures; a quiet replacement Pod has not demonstrated recovery under load.

5. A Service has no ready backends. What comes next?

A Service called checkout returns no usable backend. Inspect its selector and EndpointSlices, which describe the backend addresses and their conditions:

kubectl -n practice get service checkout -o yaml
kubectl -n practice get pods --show-labels
kubectl -n practice get endpointslices -l kubernetes.io/service-name=checkout -o yaml

Imagine the Service selects app: checkout, while the intended Pods carry app: checkout-api. That mismatch explains why those Pods are not selected. Confirm which label is intended before changing it; a broad selector can accidentally send traffic to the wrong workload.

If labels match, inspect readiness and the EndpointSlice conditions. Addresses may exist with ready: false. Some Services intentionally have no selector, and publishNotReadyAddresses changes readiness handling, so first establish the Service's intended configuration.

After correcting the actual issue, verify the intended backend addresses, the Service's port-to-targetPort mapping, and a request through the Service from the relevant client network. Endpoint discovery alone does not prove that packets reach the application.

6. How do readiness, liveness, and startup probes differ?

A readiness probe asks whether the container should currently receive normal traffic. A failed readiness probe marks the Pod unready; it does not by itself restart the container. A liveness probe can cause a container restart after its failure threshold. A startup probe allows slow initialization to finish before readiness and liveness probes begin.

Practice prompt: a new API version needs 80 seconds to initialize. Its liveness probe begins after 10 seconds and repeatedly fails before initialization finishes. Inspect the probe timings and events, and compare them with the application's startup logs. A suitably configured startup probe may allow the measured startup time while retaining liveness detection afterward.

Do not make a failing readiness check pass by hiding a dependency failure that prevents the application from serving useful requests. Conversely, making liveness depend on every external service can cause restarts during a shared dependency outage. Define what each endpoint establishes. Verify startup completion, readiness, and a real request after the change.

7. A Deployment rollout stalls. How do you decide whether to roll back?

First establish impact: are old replicas still serving, or are users receiving errors? Then inspect the rollout and the new Pods:

kubectl -n practice rollout status deployment/api --timeout=60s
kubectl -n practice get deployment api
kubectl -n practice describe deployment api
kubectl -n practice get replicasets

A status timeout means the rollout did not complete within your wait period. It does not identify the cause. New Pods might have an image-pull failure, insufficient capacity, or failed readiness. Inspect their events and logs before choosing the mitigation.

If the new version is causing customer failures, consider restoring a known working revision through the approved release process. Check compatibility first: a database migration or external configuration change might make the old version unsafe. Deployment rollback restores a previous Pod template; it cannot reverse every change made alongside the release.

Verification includes the desired available replica count and customer-facing success rates. The release engineering guide develops the canary and rollback decisions further.

8. A Pod can reach an IP address but cannot resolve a Service name. What does that prove?

It narrows the investigation toward name resolution, provided the IP test used the same destination and protocol. It does not prove that every application request works.

From an existing diagnostic Pod with nslookup installed:

kubectl -n practice exec diagnostic -- cat /etc/resolv.conf
kubectl -n practice exec diagnostic -- nslookup checkout
kubectl -n practice exec diagnostic -- nslookup checkout.practice.svc.cluster.local

The fully qualified name above assumes the cluster uses the default cluster.local domain. Check your cluster's configuration before using it. A short name uses the client's namespace search path, so a similarly named Service in another namespace requires qualification.

If lookup fails, inspect the configured resolver, DNS service health, and network access to DNS. NetworkPolicy can restrict DNS traffic. A successful DNS answer followed by a failed HTTP request shifts the investigation to routing, ports, policy, or application behavior. Verify lookup and the application's request from the affected client environment.

9. A PersistentVolumeClaim is Pending. What evidence would distinguish causes?

A PersistentVolumeClaim, or PVC, requests storage for a workload. Inspect the claim's events and its StorageClass:

kubectl -n practice describe pvc uploads
kubectl get storageclasses
kubectl -n practice describe pod uploader-5d6f7b-t4h8s

An event saying the provisioner is waiting for a first consumer can be expected when the StorageClass uses WaitForFirstConsumer. In that mode, volume provisioning or binding waits for scheduling information. Inspect the consuming Pod's scheduling constraints before treating the claim's Pending state as a storage outage.

Other events may identify an unknown class, unavailable capacity, access-mode mismatch, quota, or a provisioning error. Follow the named constraint. Deleting a claim can threaten data and is not a generic diagnostic step. After a targeted fix, check that the claim binds, the Pod mounts the expected volume, and a sandbox write can be read back as intended.

10. How should you structure a troubleshooting answer?

Use a short investigation narrative: describe the affected request, state what you know, choose the next distinguishing observation, and explain how the result changes your hypothesis. Before any change, name its scope and recovery path. Finish with the checks that would demonstrate recovery.

For each practice scenario, give yourself one point for each of the following:

  • You identify the affected namespace, workload, container, or client.
  • Your next command distinguishes plausible causes.
  • You explain both the evidence and what remains unknown.
  • Your proposed change addresses the supported cause and considers its risk.
  • You verify the user's task as well as the Kubernetes object state.

This five-point rubric is an ESRE study aid, not an employer's scoring system. Repeat a scenario with one detail changed: matching labels but failed readiness, a healthy resolver but blocked application port, or a bound volume with a mount error. Explain why the next observation changes.

For host-level failures, continue with Linux interview questions and worked investigations. The incident management guide covers coordinating a response while technical investigation continues. Get updates about forthcoming practice if you want more scenarios; these questions and answers are fully available here.

For a planned routing change, the AKS Ingress NGINX migration guide covers old/new path validation and rollback.