Courseiva
Kubernetes Fundamentals →hardMultiple Choice

KCNA Kubernetes Fundamentals Practice Question

You want to run a batch job that processes a queue and then terminates. Which Kubernetes resource should you use?

⚠ Common exam trap

The CNCF exam often tests the distinction between one-time batch processing (Job) and scheduled tasks (CronJob), leading candidates to mistakenly choose CronJob when the question specifies a single run that terminates.

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

✓

Job

A Kubernetes Job is designed for batch processing tasks that run to completion and then terminate. It creates one or more Pods and ensures they successfully finish executing a specific workload, making it the correct choice for processing a queue and then exiting.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Job

    Why this is correct

    A Job creates Pods that run to completion, tracking successful completions and retrying failures until the specified count is reached. This satisfies the stem's requirement for a batch workload that processes a queue and then terminates, unlike a Deployment, which maintains continuously running Pods.

  • ✗

    Deployment

    Why it's wrong here

    A Deployment maintains a desired count of long-running pods, restarting them indefinitely, so it never terminates after the queue empties. It is tempting because it manages replicated pods, and would be correct for a continuously available stateless service such as a web API.

  • ✗

    CronJob

    Why it's wrong here

    A CronJob creates Jobs on a time schedule, not on demand when a queue needs draining, so it would wait for its next cron tick. It is tempting because it does manage finite, terminating pods, and would be correct for recurring scheduled batch work.

  • ✗

    DaemonSet

    Why it's wrong here

    A DaemonSet runs one pod on every node continuously, so it never terminates after finishing a queue. It is tempting because it suits cluster-wide background agents such as log shippers or node monitors, where a persistent pod per node is genuinely required.

About these practice questions

One of 930 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.