11.) Which of the following best defines a Kubernetes Service?
A) A container runtime
B) A set of pods with shared storage
C) A stable endpoint for accessing pods
D) A pod configuration file
12.) How does Kubernetes ensure the desired state in the cluster?
A) Through manual configuration
B) Using configuration files
C) Through controllers that monitor and apply changes
D) By restarting nodes
13.) What is a ReplicaSet used for?
A) Managing volumes
B) Scaling nodes
C) Ensuring a specified number of pod replicas are running
D) Assigning permissions
14.) Which object manages updates and rollbacks in Kubernetes?
A) Pod
B) ReplicaSet
C) Deployment
D) ConfigMap
15.) What is the default namespace used when none is specified?
A) kube-system
B) default
C) production
D) app-space
16.) What is a label in Kubernetes?
A) A service name
B) A way to identify resources
C) A type of secret
D) A container image
17.) Which command lists all pods in all namespaces?
A) kubectl get pods
B) kubectl get all-pods
C) kubectl get pods –all-namespaces
D) kubectl pods –all
18.) Which component in Kubernetes schedules pods to nodes?
A) kube-controller-manager
B) kube-scheduler
C) kubelet
D) etcd
19.) How do Pods communicate with each other in a cluster?
A) Through kubelet
B) Using hostnames
C) Using virtual IPs assigned by Services
D) Direct DNS routing
20.) Which Kubernetes component ensures that containers in a pod are running and healthy?
A) etcd
B) kube-proxy
C) kubelet
D) controller-manager
Related