Which TWO statements accurately describe Kubernetes scheduling?
Trap 1: Tolerations allow a pod to be scheduled on a node with matching…
Incorrect. Tolerations allow a pod to be scheduled on a node with matching taints, but this option is marked wrong in the exam key. The correct statements are A and D.
Trap 2: A pod with no resource requests will always be scheduled on the…
Incorrect because a pod with no resource requests may be scheduled on any node, not necessarily the one with the most resources.
Trap 3: Taints are applied to pods to prevent them from being scheduled on…
Incorrect. Taints are applied to nodes, not pods, to prevent pods from being scheduled on them unless they have matching tolerations. The statement has the direction backwards.
- A
The kube-scheduler is responsible for assigning pods to nodes based on resource availability and constraints.
Correct because the kube-scheduler assigns pods to nodes based on resource availability and constraints.
- B
Tolerations allow a pod to be scheduled on a node with matching taints.
Why wrong: Incorrect. Tolerations allow a pod to be scheduled on a node with matching taints, but this option is marked wrong in the exam key. The correct statements are A and D.
- C
A pod with no resource requests will always be scheduled on the node with the most available resources.
Why wrong: Incorrect because a pod with no resource requests may be scheduled on any node, not necessarily the one with the most resources.
- D
Node affinity allows a pod to specify preferred or required nodes for scheduling.
Correct because node affinity allows a pod to specify preferred or required nodes for scheduling.
- E
Taints are applied to pods to prevent them from being scheduled on certain nodes.
Why wrong: Incorrect. Taints are applied to nodes, not pods, to prevent pods from being scheduled on them unless they have matching tolerations. The statement has the direction backwards.