11.) What is node affinity used for?
A) Volume mounting
B) Logging
C) Scheduling pods to specific nodes
D) Debugging pods
12.) What are taints and tolerations used for in Kubernetes?
A) Setting environment variables
B) Managing logging levels
C) Controlling pod scheduling
D) Creating services
13.) What happens when a node is tainted and a pod does not have a toleration?
A) The pod runs anyway
B) The pod is not scheduled on that node
C) The pod is deleted
D) The pod restarts
14.) Which controller allows you to roll back to a previous version?
A) Job
B) StatefulSet
C) Deployment
D) DaemonSet
15.) What does a rolling update strategy do in a Deployment?
A) Deletes all pods and creates new ones
B) Updates all at once
C) Creates a StatefulSet
D) Updates pods gradually
16.) How does Kubernetes ensure that the desired number of pods are always running?
A) By using kube-scheduler
B) Through the etcd database
C) Via controllers like ReplicaSet and Deployment
D) By restarting the API server
17.) What is the default restart policy for Kubernetes pods managed by a Deployment?
A) Always
B) OnFailure
C) Never
D) Manual
18.) Which object allows scheduled tasks using cron syntax?
A) Deployment
B) Job
C) CronJob
D) Pod
19.) What command shows running jobs in Kubernetes?
A) kubectl get jobs
B) kubectl get tasks
C) kubectl get cron
D) kubectl list jobs
20.) What controller is best for running a database with persistent storage?
A) Deployment
B) DaemonSet
C) StatefulSet
D) Job
Related