21.) How can you limit the number of concurrent jobs in a CronJob?
A) Using .spec.parallelism
B) With .spec.concurrencyPolicy
C) Adding annotations
D) You cannot limit it
22.) What happens if a node running a pod goes down?
A) Kubernetes reschedules the pod on another node
B) The pod is paused
C) The deployment is deleted
D) Nothing happens
23.) Which label selector helps match pods to ReplicaSets?
A) matchPods
B) selector
C) affinity
D) matchAffinity
24.) What is the minimum required field for a pod spec?
A) name
B) annotations
C) labels
D) containers
25.) Which field determines the maximum unavailable pods during a rolling update?
A) replicas
B) strategy.type
C) maxUnavailable
D) tolerations
26.) What is the default concurrencyPolicy of a CronJob?
A) Replace
B) Allow
C) Forbid
D) Restart
27.) Which of the following is not a valid workload controller?
A) Job
B) Deployment
C) Service
D) StatefulSet
28.) How do you restart a Deployment?
A) kubectl restart deployment
B) kubectl delete pods
C) kubectl apply deployment.yaml
D) kubectl rollout undo
29.) What does parallelism define in a Job?
A) How often the job runs
B) How many pods run in parallel
C) Number of retries
D) Number of successful completions
30.) How can you trigger a manual rollout of a deployment?
A) Change image tag
B) Reboot node
C) Delete pod
D) Delete service
Related