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 the nodeSelector field of the Pod specification.

  • B

    Use a requiredDuringSchedulingIgnoredDuringExecution node affinity rule.

  • C

    Use priorityClassName in the Pod specification.

  • D

    Use a PersistentVolume with 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.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need