- Home
- All questions
- Scheduling
CKA study material: Scheduling
107 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
- 4. Which factors does kube-scheduler weigh when choosing a node for a Pod? Choose two.
- 70. A Pod keeps running on a node that has been drained and marked unschedulable. What explains this?
- 148. Which tolerations does the DaemonSet controller add to its Pods automatically? Choose two.
- 164. Which is the simplest way to confine a Pod to nodes carrying a particular label?
- 165. A Pod uses requiredDuringSchedulingIgnoredDuringExecution node affinity and no node matches. What happens?
- 166. A running Pod's node loses the label its preferred node affinity matched. What does Kubernetes do?
- 167. What range may the weight of a preferred node affinity rule take?
- 168. A Pod has two preferred affinity rules, one weighted 1 and one weighted 50, and two nodes each satisfy one. Which node wins?
- 169. Which command removes a taint that was added with kubectl taint nodes node1 key1=value1:NoSchedule?
- 170. When does a toleration match a taint? Choose two.
- 171. Which taint effect keeps new Pods away but leaves Pods already running on the node alone?
- 172. How does tolerationSeconds affect a toleration for a NoExecute taint? Choose two.
- 173. A node carries three taints and a Pod tolerates two of them, the untolerated one being NoSchedule. What is the outcome?
- 174. What does a Pod's resource request actually reserve?
- 175. A container specifies a memory limit but no memory request, and no default is applied. What request does it get?
- 176. What does a CPU request of 0.5 mean?
- 177. How does the runtime treat a container that exceeds its limits? Choose two.
- 178. How many PriorityClasses may set globalDefault to true?
- 179. A globalDefault PriorityClass is added to a cluster that already runs many Pods. What changes for them?
- 180. A PriorityClass is deleted while Pods still reference it. What happens?
- 181. What does setting preemptionPolicy to Never on a PriorityClass achieve?
- 182. Which are eviction signals the kubelet compares against thresholds? Choose two.
- 183. Which filesystem does the nodefs eviction signal describe?
- 184. What distinguishes a hard eviction threshold from a soft one?
- 185. What is the default hard eviction threshold for memory.available on a Linux node?
- 186. Which two statements about soft eviction thresholds are correct? Choose two.
- 187. Which inputs decide the kubelet's eviction order? Choose two.
- 188. When is a Pod classified as Guaranteed?
- 189. A static Pod must survive resource pressure. Why can it not use priorityClassName?
- 190. In a topology spread constraint, what does topologyKey name?
- 191. What is the default value of whenUnsatisfiable in a topology spread constraint?
- 192. Two topology spread constraints use the same topologyKey. When is that allowed?
- 193. Which two statements about minDomains are correct? Choose two.
- 194. When does a namespace become subject to resource quota enforcement?
- 195. A quota is written for an extended resource. Which prefix may its quota items use?
- 196. A Deployment requesting more than the namespace quota allows is applied. What happens?
- 197. What is the difference between a ResourceQuota and a LimitRange?
- 198. What can a LimitRange enforce? Choose two.
- 199. An object violating a LimitRange is submitted. What does the API server return?
- 200. A LimitRange is added to a namespace that already runs Pods breaching it. What happens to those Pods?
- 319. A cluster uses topology-constrained storage and Pods keep landing where their volume is unreachable. Which setting fixes this?
- 321. A StorageClass uses WaitForFirstConsumer but a Pod sets nodeName directly. What is the consequence?
- 331. What makes a local PersistentVolume safer to use than a hostPath volume?
- 352. A Pod is stuck in Pending. What does that state tell you?
- 353. Which remedies are suggested for a Pod pending through insufficient resources? Choose two.
- 354. A Deployment using hostPort cannot schedule beyond a handful of replicas. Why?
- 366. kubectl describe node shows both Capacity and Allocatable. What is the difference?
- 381. Why might a Pod fail to schedule anywhere? Choose two.
- 382. Why is a node's schedulable headroom smaller than its machine size suggests?
- 520. An operator starts a container directly through the container runtime on a node, outside Kubernetes. How does the scheduler account for the resources it consumes?
- 552. On a single-machine kubeadm cluster, ordinary workloads stay Pending. Which action lets them run?
- 575. You are upgrading the kubelet on a control plane node across a minor version. Why must that node be drained first?
- 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?
- 664. A team adds a toleration for a GPU node's taint to every Pod in a Deployment, expecting them to land on the GPU nodes. What actually happens?
- 665. An administrator adds a NoExecute taint to a node that is already running Pods. Which two things happen? Choose two.
- 666. A node carries the taint tier=gold:NoSchedule. Which toleration matches it?
- 667. A Pod carries a toleration with an empty key and the operator Exists, and no effect. What does it tolerate?
- 668. A node has three taints and a Pod tolerates two of them; the untolerated one has effect NoSchedule. What is the outcome for a new Pod?
- 669. A Pod tolerates a NoExecute taint and sets tolerationSeconds to 3600. The taint is applied at noon and removed at 12:30. What happens to the Pod?
- 670. A Pod manifest sets spec.nodeName directly to a node carrying a NoExecute taint the Pod does not tolerate. What happens?
- 671. What is the highest value an administrator may set on a custom PriorityClass?
- 672. A cluster has no PriorityClass with globalDefault set. What priority does a Pod that names no class receive?
- 673. An operator creates a PriorityClass with globalDefault: true in a running cluster. What effect does it have on the Pods already there?
- 674. A data science team wants their long jobs scheduled ahead of others in the queue but never at the cost of evicting running work. Which PriorityClass setting achieves that?
- 675. A Pod uses a PriorityClass with preemptionPolicy: Never. Can that Pod itself be preempted?
- 676. A topology spread constraint sets maxSkew to 1 with whenUnsatisfiable: ScheduleAnyway. What does maxSkew mean here?
- 677. A Pod spec has two topology spread constraints, both with topologyKey kubernetes.io/hostname and whenUnsatisfiable: DoNotSchedule. Why is this rejected?
- 678. A topology spread constraint sets minDomains to 3 alongside whenUnsatisfiable: ScheduleAnyway. What is the problem?
- 679. A Pod was scheduled using requiredDuringSchedulingIgnoredDuringExecution node affinity. An administrator later removes the matching label from the node. What happens to the Pod?
- 680. A node affinity rule lists two entries under nodeSelectorTerms, each with one matchExpressions clause. When does a node satisfy the rule?
- 681. What is the permitted range for the weight of a preferredDuringSchedulingIgnoredDuringExecution node affinity rule?
- 682. A Pod sets both a nodeSelector for disk=ssd and a required node affinity for zone in [a, b]. Which nodes are eligible?
- 683. An inter-pod anti-affinity rule uses topology.kubernetes.io/zone as its topologyKey, but several nodes have no such label. What is the documented consequence?
- 684. Which two of the following are default hard eviction thresholds on a Linux node? Choose two.
- 685. What distinguishes a soft eviction threshold from a hard one?
- 686. A node reports the DiskPressure condition. Which eviction signal could have caused it?
- 687. How does the kubelet calculate memory.available for eviction purposes?
- 688. Which pair of steps describes how kube-scheduler chooses a node?
- 689. Three nodes finish the scoring phase with identical scores. How does kube-scheduler choose between them?
- 690. A Pod's requirements match no node in the cluster. What does kube-scheduler do?
- 691. Which two of the following are extension points a scheduling profile can configure with plugins? Choose two.
- 692. Which sequence does kubectl drain follow?
- 693. An operator scripts a rolling reboot that drains five nodes at once. What risk does the documentation identify?
- 694. A service owner writes a PodDisruptionBudget with minAvailable: 2 and expects it to survive a node's power supply failing. What does the budget actually guarantee?
- 695. A drain hangs because the application's Pods are crash-looping and the PodDisruptionBudget will not allow their eviction. Which setting is recommended to avoid this?
- 696. An API-initiated eviction differs from deleting a Pod directly. Which two things does it respect? Choose two.
- 697. Which API version serves the Eviction subresource today?
- 698. A Pod shows the status SchedulingGated and never reaches the scheduler. What must happen for it to proceed?
- 699. A controller wants to pull an already-created Pod back out of the scheduling queue by adding a scheduling gate. What does the API allow?
- 700. A RuntimeClass declares an overhead of 120Mi memory, and a Pod using it requests 256Mi across its containers. How much memory does the scheduler require on the node?
- 814. A StorageClass leaves volumeBindingMode unset. When is a volume provisioned for a new claim?
- 815. In a multi-zone cluster, Pods keep failing to start because their volume is in a different zone. Which StorageClass setting fixes this?
- 822. Which two statements about local volumes are correct? Choose two.
- 833. A cluster has CSIStorageCapacity objects but the scheduler still places Pods on nodes with no room. What is likely unset?
- 834. A Pod requiring a new attached volume stays Pending on an otherwise idle node with plenty of CPU and memory. What limit could explain it?
- 852. A Pod has been Pending for ten minutes. What does that state tell you, and where is the reason recorded?
- 853. A Deployment using hostPort is scaled to 8 replicas on a 5-node cluster, and three Pods stay Pending. Why?
- 871. A node goes unreachable. kubectl describe pod on one of its Pods shows a toleration for node.kubernetes.io/unreachable with tolerationSeconds 300. What does that govern?
- 872. On a four-node cluster where each node has one CPU, a Pod requesting 1000m stays Pending on every node. What is the likely explanation?
- 909. Why do PodDisruptionBudgets take effect during a kubectl drain?
- 911. A drain refuses to proceed because of a Pod created directly with kubectl run and owned by no controller. Which flag allows it?
- 913. An operator adds --disable-eviction to a drain to get past a blocking PodDisruptionBudget. What is the consequence?
- 978. A node is uncordoned after maintenance. What happens to the Pods that were drained off it?
- 995. During a graceful node shutdown, why can a Pod tolerating node.kubernetes.io/not-ready:NoSchedule still not start there?
- 1000. A node configures shutdownGracePeriodByPodPriority with bands at 100000, 1000 and 0, but no Pod has a priority in the highest band. What happens at shutdown?