← All CKA Flashcard Decks

Workloads and Scheduling Flashcards

5 cards from real CKA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 5 Workloads and Scheduling flashcards as text
  1. Which Kubernetes object is used to ensure that a specific number of replicas of a Pod are running at any time?

    Answer: ReplicaSet

    A ReplicaSet's primary purpose is to maintain a stable set of replica Pods running at any given time. It ensures that a specified number of identical Pods are always available and automatically replaces any Pods that fail or are terminated. While Deployments use ReplicaSets under the hood to manage Pods, the ReplicaSet itself is the object directly responsible for maintaining the desired replica count.

  2. How do you prevent a Pod from being scheduled on specific nodes?

    Answer: By tainting the nodes and adding tolerations to the Pod.

    Taints are applied to nodes to mark them as undesirable for certain Pods, preventing Pods from being scheduled on them unless they explicitly "tolerate" that taint. By tainting a node, you effectively repel Pods without the corresponding toleration. This mechanism is crucial for dedicating nodes to specific workloads or isolating problematic nodes.

  3. What happens when you scale a Deployment to zero replicas?

    Answer: All Pods managed by the Deployment are terminated.

    When a Deployment's replica count is scaled to zero, it instructs the underlying ReplicaSet to terminate all Pods it manages. This action effectively stops the application or service associated with that Deployment from running within the cluster. The Deployment object itself remains, allowing for easy scaling back up later.

  4. Which type of workload should you use for a Pod that must run on every node in a Kubernetes cluster?

    Answer: DaemonSet

    A DaemonSet ensures that all (or some) nodes in a cluster run a copy of a specific Pod. This is ideal for cluster-level services like logging agents, monitoring agents, or CNI plugins that need to be present on every node. Unlike Deployments, DaemonSets automatically add Pods to new nodes as they join the cluster and remove them when nodes are removed.

  5. How can you ensure that a Pod is scheduled on a node with specific hardware requirements (e.g., GPUs)?

    Answer: Add a node selector to the Pod specification.

    Node selectors are a simple way to constrain Pods to nodes with specific labels. By labeling nodes with their hardware capabilities (e.g., `gpu=true`) and then adding a `nodeSelector` to the Pod's specification matching that label, you can ensure the Pod is only scheduled on nodes possessing those required resources. This provides a direct and explicit method for node selection based on attributes.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. training.linuxfoundation.org — Test delivery, eligibility, fees, time limit, exam information · verified Nov 2026
  2. docs.linuxfoundation.org — Passing score, renewal, score release, score validity, test dates · verified Oct 2026