11.) What is the best way to roll out changes to a live application with zero downtime?
A) Restart pods
B) Use rolling updates
C) Use recreate strategy
D) Delete pods first
12.) What command applies a manifest only if it changes from the existing state?
A) kubectl create -f
B) kubectl update -f
C) kubectl sync -f
D) kubectl apply -f
13.) What is a common use case for Kubernetes Jobs?
A) Hosting web apps
B) Running one-time batch processes
C) Monitoring resources
D) Autoscaling
14.) How can you debug a failed pod?
A) kubectl get svc
B) kubectl restart pod
C) kubectl describe pod <name>
D) kubectl port-forward
15.) How can you scale a deployment to 10 replicas?
A) kubectl scale –replicas=10 deployment/ <name>
B) kubectl rollout replicas 10
C) kubectl pod scale 10
D) kubectl update podcount 10
16.) Which controller ensures the desired number of pod replicas are always running?
A) DaemonSet
B) CronJob
C) ReplicaSet
D) StatefulSet
17.) What is a good use case for StatefulSets?
A) Stateless applications
B) Temporary jobs
C) High-performance computing
D) Persistent storage and ordered deployment
18.) How can you monitor cluster health effectively?
A) Use Kubernetes logs
B) Install Prometheus and Grafana
C) Increase replicas
D) Watch pods manually
19.) What does the kubectl rollout undo command do?
A) Deletes all resources
B) Restarts all pods
C) Rolls back to the previous deployment
D) Undeploys all manifests
20.) What is the purpose of using resource quotas in namespaces?
A) To limit resource usage per namespace
B) For image versioning
C) For access control
D) To restart pods
Related