Courseiva
Container Orchestration →easyMultiple Choice

KCNA Container Orchestration Practice Question

A developer wants to run a one-time task that creates a database schema and then exits. Which Kubernetes workload type is most appropriate?

⚠ Common exam trap

Test-takers frequently confuse a one-time task with a Deployment because they think of 'running a container' generically, forgetting that Deployments enforce a restart policy that would keep the task running indefinitely.

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 Job is the correct choice because it is designed for finite, one-time tasks that run to completion, such as creating a database schema. Unlike long-running workloads, a Job creates one or more Pods and ensures they terminate successfully after the task finishes, making it ideal for batch processing or initialization tasks.

Answer analysis

Option-by-option breakdown

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

  • ✗

    DaemonSet

    Why it's wrong here

    A DaemonSet schedules one pod per node continuously for node-level agents, so it never completes and would recreate the task on every node. It is tempting for cluster-wide background services such as log collectors, not for a single run-to-completion database schema task.

  • ✗

    StatefulSet

    Why it's wrong here

    A StatefulSet manages long-running pods with stable identities and persistent storage, and it restarts containers rather than allowing them to exit after completion. It is tempting for stateful databases, but a schema-creation job that terminates belongs to the Job workload type.

  • ✗

    Deployment

    Why it's wrong here

    A Deployment maintains a desired count of long-running replicas, restarting pods whenever they exit, so the task would loop indefinitely instead of finishing once. It is tempting for stateless web services, but a run-once schema creation requires the Job workload type.

  • ✓

    Job

    Why this is correct

    A Job runs pods to completion and is designed for finite, run-to-completion workloads. This matches the stem's constraint of a one-time task that creates a schema and then exits, unlike a Deployment, which maintains continuous desired-state replicas.

About these practice questions

This KCNA question is part of Courseiva's 930-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.