Kcna Kubernetes And Cloud Native Associate · Free Practice Question Medium
Question 44
How can you ensure that a Pod gets scheduled on a Node with an SSD disk type?
-
A
Specify
ssd: "true"in thenodeSelectorfield of the Pod specification. -
B
Use a
requiredDuringSchedulingIgnoredDuringExecutionnode affinity rule. -
C
Use
priorityClassNamein the Pod specification. -
D
Use a
PersistentVolumewith SSD storage class and bind it to the Pod.
Reveal correct answer
Correct answer: A
A.
Using nodeSelector with a label that identifies SSD-equipped nodes (e.g., ssd: "true") ensures that the Pod will be scheduled only on nodes with SSDs.
B.
While node affinity could potentially work, it is more complex to set up than simply using nodeSelector.
C.
priorityClassName affects the scheduling priority of the Pod but does not target specific node characteristics like disk type.
D.
Using a PersistentVolume with SSD storage class ensures the storage type but doesn't dictate where the Pod gets scheduled unless combined with other scheduling constraints.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
