Basics (1–15)
1. What is Kubernetes primarily used for?
A. Virtual machines
B. Container orchestration
C. Database management
D. Load testing
✅ Answer: B
2. Which company originally developed Kubernetes?
A. Amazon
B. Microsoft
C. Google
D. Red Hat
✅ Answer: C
3. What is the smallest deployable unit in Kubernetes?
A. Container
B. Node
C. Pod
D. Service
✅ Answer: C
4. Which file format is commonly used to define Kubernetes resources?
A. JSON only
B. XML
C. YAML
D. INI
✅ Answer: C
5. Which command creates resources from a YAML file?
A. kubectl start
B. kubectl apply
C. kubectl run
D. kubectl deploy
✅ Answer: B
6. What does kubectl get pods do?
A. Creates pods
B. Deletes pods
C. Lists pods
D. Restarts pods
✅ Answer: C
7. What component schedules pods onto nodes?
A. kubelet
B. kube-proxy
C. kube-scheduler
D. etcd
✅ Answer: C
8. What is a Node?
A. A container
B. A physical or virtual machine in the cluster
C. A Kubernetes namespace
D. A service
✅ Answer: B
9. Which object exposes pods to external traffic?
A. ConfigMap
B. Volume
C. Service
D. Secret
✅ Answer: C
10. Which Service type exposes an app externally using a cloud provider load balancer?
A. ClusterIP
B. NodePort
C. LoadBalancer
D. ExternalName
✅ Answer: C
11. What is the default Kubernetes namespace?
A. kube-system
B. default
C. public
D. main
✅ Answer: B
12. Which command shows cluster information?
A. kubectl status
B. kubectl cluster-info
C. kubectl info
D. kubectl describe cluster
✅ Answer: B
13. What does etcd store?
A. Logs
B. Metrics
C. Cluster state
D. Container images
✅ Answer: C
14. Which component runs on every node?
A. kube-apiserver
B. kube-scheduler
C. kubelet
D. etcd
✅ Answer: C
15. What does kubectl describe pod show?
A. Only pod name
B. Pod YAML
C. Detailed pod events and status
D. Pod logs
✅ Answer: C
Intermediate (16–35)
16. What controller ensures the desired number of pods are running?
A. Job
B. Deployment
C. ReplicaSet
D. DaemonSet
✅ Answer: C
17. Which object is recommended for stateless applications?
A. StatefulSet
B. Deployment
C. Job
D. CronJob
✅ Answer: B
18. What is a StatefulSet mainly used for?
A. Stateless apps
B. Batch jobs
C. Stateful applications
D. Monitoring
✅ Answer: C
19. Which resource stores non-sensitive configuration data?
A. Secret
B. ConfigMap
C. Volume
D. Ingress
✅ Answer: B
20. How are sensitive values stored in Kubernetes?
A. ConfigMaps
B. Secrets
C. Environment files
D. Volumes only
✅ Answer: B
21. Which command shows pod logs?
A. kubectl describe pod
B. kubectl logs
C. kubectl exec
D. kubectl debug
✅ Answer: B
22. What does kubectl exec do?
A. Executes commands inside a container
B. Deletes a pod
C. Restarts a service
D. Scales a deployment
✅ Answer: A
23. What is an Ingress used for?
A. Internal pod communication
B. External HTTP/HTTPS routing
C. Persistent storage
D. Authentication
✅ Answer: B
24. Which component handles networking rules on nodes?
A. kube-scheduler
B. kubelet
C. kube-proxy
D. etcd
✅ Answer: C
25. What is a DaemonSet used for?
A. Run one pod per cluster
B. Run one pod per node
C. Run scheduled jobs
D. Run replicas
✅ Answer: B
26. Which storage is ephemeral?
A. PersistentVolume
B. PersistentVolumeClaim
C. emptyDir
D. NFS
✅ Answer: C
27. What does HPA stand for?
A. Horizontal Pod Autoscaler
B. High Performance Application
C. Host Policy Agent
D. Hybrid Pod Autoscaler
✅ Answer: A
28. What metric is commonly used by HPA?
A. Disk IO
B. CPU utilization
C. Network latency
D. Memory swap
✅ Answer: B
29. Which object binds storage to a pod?
A. PV
B. PVC
C. StorageClass
D. VolumeSnapshot
✅ Answer: B
30. What is the purpose of a namespace?
A. Network isolation
B. Resource isolation
C. Node isolation
D. Storage isolation
✅ Answer: B
31. What happens when a pod crashes?
A. Kubernetes ignores it
B. It is restarted automatically
C. The node shuts down
D. Deployment is deleted
✅ Answer: B
32. Which command scales a deployment?
A. kubectl resize
B. kubectl scale
C. kubectl autoscale
D. kubectl update
✅ Answer: B
33. Which object manages batch jobs?
A. Deployment
B. Job
C. DaemonSet
D. Service
✅ Answer: B
34. What does a CronJob do?
A. Runs continuously
B. Runs at scheduled times
C. Runs once
D. Runs per node
✅ Answer: B
35. Which port does the Kubernetes API server use by default?
A. 80
B. 443
C. 6443
D. 8080
✅ Answer: C
Advanced (36–50)
36. What is a liveness probe used for?
A. Check startup time
B. Restart unhealthy containers
C. Scale pods
D. Load balance traffic
✅ Answer: B
37. What is a readiness probe used for?
A. Restart containers
B. Kill pods
C. Control traffic routing
D. Scale nodes
✅ Answer: C
38. What is RBAC used for?
A. Networking
B. Storage
C. Access control
D. Monitoring
✅ Answer: C
39. Which object defines permissions in RBAC?
A. Role
B. RoleBinding
C. ClusterRole
D. All of the above
✅ Answer: D
40. What does kubectl cordon do?
A. Stops a node
B. Prevents new pods from scheduling
C. Deletes pods
D. Restarts kubelet
✅ Answer: B
41. What does kubectl drain do?
A. Deletes a node
B. Evicts pods safely
C. Scales deployments
D. Cleans logs
✅ Answer: B
42. Which networking model does Kubernetes follow?
A. NAT-based
B. Flat network
C. Host-only
D. Proxy-only
✅ Answer: B
43. What is a sidecar container?
A. Backup container
B. Init container
C. Helper container in the same pod
D. External container
✅ Answer: C
44. What is an init container used for?
A. Monitoring
B. Pre-start setup tasks
C. Logging
D. Scaling
✅ Answer: B
45. Which tool is commonly used for Kubernetes package management?
A. Docker
B. Helm
C. Terraform
D. Ansible
✅ Answer: B
46. What does a PodDisruptionBudget control?
A. CPU limits
B. Memory usage
C. Voluntary disruptions
D. Network traffic
✅ Answer: C
47. Which feature helps manage secrets securely?
A. ConfigMaps
B. Base64 encoding
C. External secret managers
D. All of the above
✅ Answer: D
48. What is the purpose of a ServiceAccount?
A. User login
B. Pod identity
C. Node authentication
D. Load balancing
✅ Answer: B
49. What does kubectl rollout undo do?
A. Deletes deployment
B. Rolls back to previous version
C. Restarts pods
D. Scales deployment
✅ Answer: B
50. What is the main goal of Kubernetes?
A. Replace Docker
B. Simplify cloud billing
C. Automate container deployment, scaling, and management
D. Replace Linux
✅ Answer: C
Kubernetes is a powerful and constantly evolving platform, and truly mastering it takes more than just memorizing commands it requires understanding how and why things work under the hood. This quiz was designed to test your knowledge across core concepts, real-world use cases, and advanced Kubernetes features.
If you scored high, congratulations you have a solid grasp of Kubernetes fundamentals and beyond. If some questions were challenging, don’t worry. Every missed question highlights an area worth revisiting, whether it’s networking, storage, security, or cluster operations.
Keep practicing, experiment with real clusters, and stay up to date with Kubernetes best practices. The more hands-on experience you gain, the more confident you’ll become in managing production-grade Kubernetes environments.
For more information about Kubernetes, you can refer to Jeevi’s page.
This tutorial is just the beginning learn Kubernetes hands-on in our complete course. Upgrade your skills with AWS.



