- Home
- All questions
- Workloads
CKA study material: Workloads
96 questions of the 1000 in the CKA — Certified Kubernetes Administrator quiz. Each opens with its answer, the reasoning and where that is written down.
Challenge yourself on this topic → Study as cards
The questions
- 126. Which object does a Deployment manage directly?
- 127. A Deployment is scaled from three replicas to five. How many new revisions does this create?
- 128. Which two statements about Deployment revisions are correct? Choose two.
- 129. What are the default values of maxUnavailable and maxSurge for a Deployment's rolling update? Choose two.
- 130. An administrator sets both maxUnavailable and maxSurge to 0. What happens?
- 131. During a rolling update, why can the total Pod count briefly exceed the Deployment's replicas?
- 132. A Deployment is updated again while a rollout is still in progress. What does the controller do?
- 133. Which field decides how long the controller waits before reporting that a rollout has stalled?
- 134. A rollout has exceeded its progress deadline. Which condition does the Deployment carry?
- 135. An operator wants to make three edits to a Deployment's Pod template but trigger only one rollout. What should they do?
- 136. Which needs does a StatefulSet meet that a Deployment does not? Choose two.
- 137. A StatefulSet is scaled from five replicas to two. What happens to the two removed Pods' volumes?
- 138. Which StatefulSet field gives each Pod its own PersistentVolumeClaim?
- 139. A StatefulSet named web has three replicas. What are its Pods called?
- 140. What kind of Service does a StatefulSet use to control its Pods' DNS domain?
- 141. Which ordering guarantees does a StatefulSet give by default? Choose two.
- 142. Which setting makes a StatefulSet start and stop its Pods together while keeping their identities?
- 143. A StatefulSet's Pod template is changed but no Pods are replaced. Which updateStrategy explains this?
- 144. A StatefulSet with RollingUpdate sets partition to 3. Which Pods are updated?
- 145. Which two settings make up a StatefulSet's persistentVolumeClaimRetentionPolicy? Choose two.
- 146. A StatefulSet Pod is replaced after its node fails. What happens to its PersistentVolumeClaim?
- 147. How does the DaemonSet controller ensure a Pod lands on its intended node?
- 148. Which tolerations does the DaemonSet controller add to its Pods automatically? Choose two.
- 149. A node's labels are changed so it no longer matches a DaemonSet's selector. What does the controller do?
- 150. A DaemonSet is deleted with --cascade=orphan. Which two things happen? Choose two.
- 151. A Job sets neither completions nor parallelism. What does it run?
- 152. How is a work-queue Job configured?
- 153. An operator wants to pause a running Job without deleting it. What should they do?
- 154. A fixed-completion Job needs two more successes but parallelism is set to ten. How many Pods run?
- 155. What is the default value of a Job's backoffLimit?
- 156. How does the Job controller space out retries after repeated Pod failures?
- 157. A Job sets backoffLimit 5 and activeDeadlineSeconds 100. Three retries have happened when 100 seconds elapse. What occurs?
- 158. A Job has failed through its backoffLimit. What brings it back?
- 159. Which two behaviours does a CronJob's concurrencyPolicy of Forbid produce? Choose two.
- 160. Which concurrencyPolicy kills a still-running Job when the next run is due?
- 161. What are the default history limits for a CronJob? Choose two.
- 162. What is a liveness probe for?
- 163. Which two probe fields control its timing? Choose two.
- 426. Why must batch work run as a Job rather than a Deployment?
- 427. A sidecar container keeps restarting even though the Pod's restartPolicy is OnFailure. Why?
- 434. How do init containers behave? Choose two.
- 626. An application cannot tolerate two versions running at once, even briefly. Which Deployment strategy type meets that requirement?
- 627. A Deployment has 10 replicas and leaves maxUnavailable at its default. How many Pods may be unavailable during a rolling update?
- 628. A Deployment has 10 replicas and leaves maxSurge at its default. How many Pods above the desired count may exist during a rolling update?
- 629. An engineer sets both maxUnavailable and maxSurge to 0 on a RollingUpdate Deployment. What is wrong with that?
- 630. A Deployment's rollout stalls, and after ten minutes its Progressing condition turns False. What reason does the condition carry, and what does the controller do next?
- 631. A Deployment sets minReadySeconds to 900 and progressDeadlineSeconds to 600. What is wrong?
- 632. A team wants a new Pod to be considered available only after it has stayed ready for thirty seconds without a container crashing. Which field expresses that?
- 633. How many old ReplicaSets does a Deployment retain by default, and what does keeping them enable?
- 634. An operator finds eighteen ReplicaSets for a Deployment whose revisionHistoryLimit is 10. What explains the excess?
- 635. A Deployment has spec.paused set to true. Which statement is correct?
- 636. A Deployment uses the Recreate strategy. An operator deletes one of its Pods by hand. What happens?
- 637. Two Deployments in a namespace were written with the same label selector. What is the documented consequence?
- 638. A StatefulSet named db has replicas scaled from 3 to 1. Which two statements describe what happens? Choose two.
- 639. A StatefulSet is scaled from 1 to 3, but only web-0 and web-1 ever appear. web-1 is Running but never becomes Ready. Why is web-2 missing?
- 640. A StatefulSet's Pods have no resolvable DNS names. Which omission would cause that?
- 641. A StatefulSet with three replicas and a volumeClaimTemplate is deleted, with no retention policy configured. What happens to its PersistentVolumeClaims?
- 642. You need a StatefulSet's Pods to shut down in an orderly, graceful sequence. What is the documented way to achieve that?
- 643. A StatefulSet with 5 replicas has updateStrategy.rollingUpdate.partition set to 3 when its template changes. Which Pods are updated?
- 644. A StatefulSet has updateStrategy.type set to OnDelete and its Pod template is changed. What happens?
- 645. A StatefulSet should keep its volumes when scaled down but discard them when the whole set is deleted. Which two settings express that? Choose two.
- 646. How does a DaemonSet Pod come to be running on a particular node?
- 647. A DaemonSet's Pods fail to schedule on nodes that are already full. Which change makes them able to displace other work?
- 648. A node becomes unreachable and its ordinary Pods are eventually evicted, yet its DaemonSet Pods stay put. Why?
- 649. Which DaemonSet Pods get an automatic toleration for the node.kubernetes.io/network-unavailable taint?
- 650. A Job with default settings has a Pod that keeps failing. How many failures are tolerated before the Job is marked failed?
- 651. A batch job splits a fixed dataset into numbered shards, and each Pod must know which shard it owns. Which Job setting supports that?
- 652. A Job pulls items from an external queue until the queue is empty, and there is no fixed number of items. How should it be configured?
- 653. A Job sets completions to 10 and parallelism to 50, but never more than a handful of Pods run at once near the end. Why?
- 654. Which Job field asks Kubernetes to clean up the Job and its Pods a fixed time after it finishes?
- 655. A Job sets parallelism 1, completions 1 and restartPolicy Never. What must its program still tolerate?
- 656. A CronJob's run occasionally overruns its schedule, and the new run must cancel the old one. Which concurrencyPolicy does that?
- 657. A CronJob with no startingDeadlineSeconds misses its 02:00 run because the controller was down until 05:00. What happens when the controller returns?
- 658. A CronJob is left with default history settings. Which two statements are correct? Choose two.
- 659. A CronJob scheduled for 0 3 * * * fires at an unexpected wall-clock time after the control plane is moved to different hosts. What is the likely cause?
- 660. A container has a startup probe as well as liveness and readiness probes. When do the liveness and readiness probes first run?
- 661. A container's readiness probe begins failing. Which two things happen? Choose two.
- 662. A probe is written with no timing fields set. How long may each check take before it is treated as a failure?
- 663. An engineer wants a container to be considered healthy only after two consecutive successful checks. On which probe type can successThreshold be set above 1?
- 778. Which two Pod spec fields shape the DNS name a Pod is given under a headless Service? Choose two.
- 818. A Pod uses an emptyDir volume. Which two events preserve its contents? Choose two.
- 869. kubectl describe shows Ready: True for a container that is plainly not serving traffic correctly. What does that column actually mean here?
- 888. A Pod shows the status Init:1/3. What does that mean?
- 889. Which two Pod statuses indicate that all init containers have finished? Choose two.
- 890. A StatefulSet Pod has sat in Terminating for hours after its node failed. What does the documentation direct you to?
- 898. Which workload object suits a node-level logging agent, and why?
- 922. kubectl rollout undo deployment/api is run with no other flags. Which revision does it restore?
- 923. A pipeline runs kubectl rollout status to gate on one particular deployment. A colleague triggers another rollout meanwhile. What happens without extra flags?
- 977. How is every container of a DaemonSet updated to one image in a single kubectl set image command?
- 979. A Pod is deleted with default settings. What signal does its main process receive first, and how long before SIGKILL?
- 980. A container has a preStop hook that takes 45 seconds and terminationGracePeriodSeconds left at its default. What happens?
- 981. A preStop hook is still running as the termination grace period ends. What does the kubelet do?
- 982. Which two flags together force-delete a Pod from the API server? Choose two.
- 983. Why is force-deleting a StatefulSet Pod treated as dangerous?
- 985. A Pod has two sidecar containers and one main container. Which two statements describe shutdown? Choose two.
- 986. An application requires its cache container to stop before its API container. What does Kubernetes offer?