21.) How are labels different from annotations in Kubernetes?
A) Labels are not searchable
B) Annotations are used for grouping
C) Labels are used for selection/filtering
D) Annotations can be used to schedule pods
22.) What kind of object is responsible for applying a rolling update in Kubernetes?
A) Pod
B) Node
C) Namespace
D) Deployment
23.) What does a “Node” represent in a Kubernetes cluster?
A) A container
A deployment script
C) A single machine (virtual or physical)
D) A network rule
24.) What is the purpose of readiness probes in pods?
A) To restart containers
B) To delay startup
C) To limit memory
D) To check if the pod is ready to receive traffic
25.) What is the default restart policy for a Kubernetes pod?
A) Never
B) OnFailure
C) Always
D) Manual
26.) What command shows all services in all namespaces?
A) kubectl get service
B) kubectl get svc –all-namespaces
C) kubectl service list
D) kubectl show services
27.) What is the maximum number of containers a pod can run?
A) 1
B) 10
C) 100
D) No fixed limit
28.) What is the main purpose of taints and tolerations?
A) To apply limits
B) To isolate networking
C) To control which pods can be scheduled on specific nodes
D) To enable service discovery
29.) Which controller ensures the current state of pods matches the desired state?
A) kubelet
B) Deployment controller
C) Scheduler
D) API Server
30.) Which component validates and configures data for the API objects?
A) API Server
B) Kubelet
C) Scheduler
D) Controller
Related