Courseiva
Kubernetes FundamentalseasyMultiple ChoiceObjective-mapped

KCNA Kubernetes Fundamentals Practice Question

A company wants to ensure that a database pod runs on a node with SSD storage. How should this be achieved?

⚠ Common exam trap

The KCNA exam often tests the distinction between scheduling constraints (nodeSelector/node affinity) and repulsion mechanisms (taints/tolerations), trapping candidates who confuse tolerations as a way to select nodes rather than as a way to bypass node restrictions.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Label SSD nodes with 'disk=ssd' and add a nodeSelector to the pod

NodeSelector is a field in the Pod spec that constrains which nodes the Pod can be scheduled on, based on node labels. By labeling nodes with SSD storage as 'disk=ssd' and adding a nodeSelector with that label to the Pod, Kubernetes will only schedule the Pod on nodes that have the matching label, ensuring it runs on SSD storage.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Label SSD nodes with 'disk=ssd' and add a nodeSelector to the pod

    Why this is correct

    nodeSelector ensures the pod is scheduled only on nodes with the matching label.

  • Set a resource request for local SSD storage in the pod spec

    Why it's wrong here

    Resource requests are for CPU/memory, not storage type.

  • Use pod anti-affinity to avoid non-SSD nodes

    Why it's wrong here

    Anti-affinity prevents co-location, not selection of specific node features.

  • Add a taint to nodes without SSDs and a toleration to the pod

    Why it's wrong here

    Taints repel pods, but tolerations allow scheduling on tainted nodes; this does not guarantee SSD nodes.

About these practice questions

One of 833 original KCNA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This KCNA practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the KCNA exam.