Knowing Kubernetes commands is one thing.
Understanding what Kubernetes actually does is another.
Imagine you're sitting in a DevOps interview.
The interviewer asks:
Your Kubernetes Pod is running, but users cannot access the application. How would you troubleshoot it?
Suddenly, memorizing definitions isn't enough.
You need to understand networking, configuration, application behaviour and Kubernetes architecture.
Whether you're preparing for a DevOps interview, learning cloud-native engineering, or studying for the CKA certification, these 20 questions will help you identify gaps in your knowledge.
Save this article for your next interview.
1. What Happens When You Create a Pod in Kubernetes?
When you submit a Pod definition:
- The API Server receives and validates the request.
- The desired state is stored in etcd.
- The Scheduler selects a suitable worker node.
- The kubelet communicates with the container runtime.
- The container runtime pulls the image if needed and starts the container.
- The kubelet reports the Pod's status.
Understanding this process is more valuable than simply memorizing kubectl commands.
2. What Is the Difference Between a Pod and a Container?
A container runs an application process in an isolated environment.
A Pod is the smallest deployable unit in Kubernetes and can contain one or more containers.
Containers inside the same Pod share networking and can share storage volumes.
Think of a Pod as an environment that Kubernetes manages for closely related containers.
3. What Is the Difference Between a Deployment and a StatefulSet?
| Deployment | StatefulSet |
|---|---|
| Commonly used for stateless applications | Commonly used for stateful applications |
| Interchangeable replicas | Stable Pod identities |
| Flexible Pod replacement | Stable storage association when configured |
| Suitable for web applications | Suitable for many database workloads |
Choosing the correct workload controller depends on your application's requirements.
4. Why Do We Need Kubernetes Services?
Pods can be recreated and assigned different IP addresses.
A Service provides a stable networking abstraction for accessing a group of Pods.
Common Service types include:
- ClusterIP
- NodePort
- LoadBalancer
- ExternalName
Without Services or another discovery mechanism, managing communication between changing application instances becomes difficult.
5. What Happens When You Delete a Pod?
If the Pod is managed by a Deployment, its ReplicaSet controller normally creates a replacement.
You can demonstrate this in your local Kubernetes cluster:
kubectl create deployment demo --image=nginx kubectl scale deployment demo --replicas=3 kubectl get pods Delete one of the generated Pods:
kubectl delete pod <pod-name> Check again:
kubectl get pods Kubernetes works to restore the desired number of replicas.
This is one example of Kubernetes self-healing.
6. How Do You Troubleshoot CrashLoopBackOff?
Start by inspecting the Pod:
kubectl describe pod <pod-name> Check application logs:
kubectl logs <pod-name> Check logs from the previous container instance:
kubectl logs <pod-name> --previous Common causes include:
- Application startup failures
- Missing environment variables
- Incorrect configuration
- Memory limits
- Failed liveness probes
Don't repeatedly restart the application without understanding the cause.
7. What Is ImagePullBackOff?
This indicates that Kubernetes cannot successfully pull a container image and is retrying with increasing delays.
Possible causes:
- Incorrect image name
- Invalid image tag
- Missing registry credentials
- Network connectivity problems
- Registry availability issues
Investigate using:
kubectl describe pod <pod-name> The Events section often provides useful information about the failure.
8. What Is the Difference Between ConfigMaps and Secrets?
ConfigMaps store non-sensitive configuration.
Secrets are intended for sensitive information such as credentials and tokens.
However, Kubernetes Secrets are not automatically secure simply because their values are Base64-encoded.
Production environments should use appropriate access controls, encryption at rest and secure secret management practices.
9. What Is the Difference Between Liveness and Readiness Probes?
| Probe | Purpose |
|---|---|
| Liveness | Determines whether a container should be restarted |
| Readiness | Determines whether a Pod is ready to receive traffic |
| Startup | Determines whether an application has completed startup |
Incorrect probe configurations can cause unnecessary restarts or make healthy applications unavailable.
10. What Happens When a Kubernetes Node Fails?
The control plane eventually detects that the node is unavailable.
Depending on workload configuration, eviction behaviour and available resources, replacement Pods can be scheduled on healthy nodes.
This is why redundancy, storage design and sufficient cluster capacity matter.
Kubernetes improves resilience, but it does not guarantee zero downtime.
Preparing for the CKA Certification?
If the previous questions revealed gaps in your Kubernetes knowledge, a structured study plan might help.
I've published a dedicated Kubernetes learning resource:
📘 CKA Complete Study Guide — Certified Kubernetes Administrator
Designed for learners who want to strengthen their Kubernetes knowledge and prepare for the CKA certification.
Starting at $13.99
Explore the CKA Complete Study Guide →
Combine it with hands-on labs and the official certification objectives. Understanding Kubernetes practically is essential.
11. What Is the Difference Between Resource Requests and Limits?
Requests help Kubernetes schedule Pods based on their expected resource requirements.
Limits restrict how much of a resource a container can consume, with behaviour depending on the resource type.
Example:
resources: requests: memory: "128Mi" cpu: "100m" limits: memory: "256Mi" cpu: "500m" Incorrect resource configuration can cause scheduling failures, CPU throttling or memory-related container termination.
12. Why Is a Pod Stuck in Pending State?
Common reasons include:
- Insufficient CPU or memory
- Node affinity restrictions
- Untolerated node taints
- Unavailable persistent storage
- Scheduling constraints
Start your investigation with:
kubectl describe pod <pod-name> kubectl get nodes kubectl get events Always read the scheduling events before making configuration changes.
13. What Is Kubernetes RBAC?
Role-Based Access Control determines which identities are permitted to perform particular actions on Kubernetes resources.
Its main components include:
- Role
- ClusterRole
- RoleBinding
- ClusterRoleBinding
The principle of least privilege is important: grant only the permissions required for a particular task.
14. What Is a Persistent Volume?
Containers are replaceable, and their writable filesystem is generally temporary.
Kubernetes provides PersistentVolumes and PersistentVolumeClaims to help workloads use persistent storage.
Common concepts include:
- PersistentVolume (PV)
- PersistentVolumeClaim (PVC)
- StorageClass
Persistent storage is especially important for applications that must retain data across Pod replacement.
15. What Is the Difference Between Docker and Kubernetes?
Docker provides tools for building and running containers.
Kubernetes orchestrates containerized workloads across a cluster.
| Docker | Kubernetes |
|---|---|
| Container tooling | Container orchestration |
| Builds container images | Manages workloads |
| Runs containers | Schedules and scales Pods |
| Useful for local development | Useful for managing clustered applications |
Understanding containers before Kubernetes makes the learning process much easier.
16. How Do You Roll Back a Kubernetes Deployment?
In your authorized learning cluster, inspect the deployment history:
kubectl rollout history deployment/my-app Roll back to a previous revision:
kubectl rollout undo deployment/my-app Monitor the rollout:
kubectl rollout status deployment/my-app Remember that rolling back an application Deployment does not automatically reverse database migrations or external infrastructure changes.
17. What Is Horizontal Pod Autoscaling?
The Horizontal Pod Autoscaler adjusts the number of workload replicas based on configured metrics.
For example, it can increase application replicas when average CPU utilization rises.
It requires suitable metrics infrastructure and correctly configured workloads.
Autoscaling helps applications respond to changing demand, but it does not fix inefficient application code.
18. How Does Kubernetes DNS Work?
Kubernetes commonly uses CoreDNS to provide internal DNS-based service discovery.
Applications can communicate using Service names rather than manually tracking changing Pod IP addresses.
A typical fully qualified Service name looks like:
my-service.default.svc.cluster.local The cluster DNS suffix may differ depending on configuration.
19. Your Pod Is Running, but the Application Is Unreachable. What Would You Check?
This is one of the most useful troubleshooting scenarios to practise.
Check:
- Whether the application is listening on the expected port.
- Whether the Pod is ready.
- Whether the Service selector matches the Pod labels.
- Whether the Service target port is correct.
- Whether EndpointSlices contain the expected endpoints.
- Whether NetworkPolicies restrict communication.
- Whether DNS and external routing are working.
Useful commands:
kubectl get pods -o wide kubectl get svc kubectl get endpointslices kubectl describe svc <service-name> kubectl logs <pod-name> A running Pod does not necessarily mean a working application.
20. When Should You NOT Use Kubernetes?
This might be the most important question.
Kubernetes introduces operational complexity.
For a small application, simpler alternatives may be sufficient:
- A virtual machine
- Docker Compose
- A managed application platform
- Serverless infrastructure
Kubernetes is valuable when its orchestration capabilities solve meaningful problems.
Good engineers understand when to use a technology and when to avoid it.
The Kubernetes Troubleshooting Cheat Sheet
Bookmark these commands:
| Command | Purpose |
|---|---|
kubectl get pods | Inspect workloads |
kubectl get nodes | Inspect cluster nodes |
kubectl describe pod | Investigate Pod details and events |
kubectl logs | Read container logs |
kubectl get events | Investigate cluster events |
kubectl get svc | Inspect Services |
kubectl get pvc | Inspect storage claims |
kubectl top pods | Inspect resource usage when metrics are available |
kubectl rollout status | Check deployment progress |
kubectl rollout history | Inspect deployment revisions |
The secret to troubleshooting isn't memorizing every command.
It's knowing which question to ask next.
📚 Build Your Complete DevOps and Developer Skill Set
Kubernetes is only one part of modern software engineering.
To become comfortable with cloud-native systems, you should also understand programming, containers, version control and infrastructure automation.
I've published a collection of affordable digital learning resources for developers who prefer structured, self-paced learning.
☸️ CKA Complete Study Guide
Strengthen your Kubernetes knowledge and prepare for Kubernetes administration.
Starting at $13.99
⚙️ DevOps Complete Pack
Explore a broader collection of DevOps learning material.
$12.99
🐳 Docker Mastery — From Zero to Certified
Build the containerization foundation you need before mastering Kubernetes.
Starting at $4
☁️ Terraform Associate Exam Crash Course
Learn Infrastructure as Code and Terraform fundamentals.
Starting at $4
🌿 Git Mastery — From Zero to Expert
Improve your knowledge of Git, GitHub and GitLab.
Starting at $4.99
🐍 Mastering Python
Develop programming and automation skills.
Starting at $7
🐹 Mastering Go
Explore the language behind many popular cloud-native tools, including Kubernetes.
Starting at $5.99
🧠 The Sharp Mind
Develop critical thinking, analytical reasoning and problem-solving skills.
Starting at $8
Browse My Complete Technical Book Collection →
These are my own paid educational resources. Choose the resource that matches your current learning goals. For certification-specific books, check the current official exam objectives before purchasing.
Every purchase supports my work as an independent educational content creator.
Test Your Kubernetes Knowledge
How many of these 20 questions could you confidently answer without searching for the solution?
- 0–5: Focus on Kubernetes fundamentals.
- 6–10: Strengthen your architecture and networking knowledge.
- 11–15: Spend more time on practical troubleshooting.
- 16–20: Challenge yourself with more complex hands-on scenarios.
This is an informal self-assessment, not an official certification readiness test.
Free Kubernetes Learning Resources
- Official Kubernetes Documentation
- Kubernetes Interactive Tutorials
- Kubernetes GitHub Repository
- Cloud Native Computing Foundation
Combine structured reading with practical implementation.
Don't just prepare answers for interviews. Learn to solve the problems behind those questions.
Final Thoughts
A certification can demonstrate knowledge.
A portfolio can demonstrate experience.
But the ability to investigate unfamiliar problems demonstrates something equally important: engineering capability.
Don't learn Kubernetes just to add another keyword to your résumé.
Learn it so you can understand, deploy, troubleshoot and improve real systems.
The best preparation for a technical interview is becoming capable of doing the actual work.
Let's Discuss 💬
What's the hardest Kubernetes or DevOps interview question you've ever been asked?
Share it in the comments. Let's build a useful collection of real interview questions for the developer community.
If this guide helped you, leave a reaction, bookmark it for your next interview and share it with someone preparing for a DevOps career.
Happy learning! 🚀
