Courseiva
Container Orchestration →hardMultiple Choice

KCNA Container Orchestration Practice Question

You need to run a stateful application that requires stable network identities and persistent storage per pod. Which Kubernetes resource is BEST suited?

⚠ Common exam trap

A common misconception is that Deployment can handle stateful workloads by using PersistentVolumeClaims, but Deployment pods lack stable identities and ordered startup/shutdown, which are essential for many stateful applications.

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

✓

StatefulSet

StatefulSet is the correct choice because it is specifically designed for stateful applications that require stable, unique network identifiers (e.g., pod names like `web-0`, `web-1`) and persistent storage that persists across pod rescheduling. Each pod in a StatefulSet gets a dedicated PersistentVolumeClaim, and the ordinal index ensures consistent identity, which is critical for databases like Cassandra or MySQL.

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 places one pod per node for cluster-wide agents such as log collectors or node monitors, not per-replica identity. It provides no ordinal naming or dedicated PersistentVolumeClaim per instance. DaemonSets are correct when every node must run the same background workload.

  • ✓

    StatefulSet

    Why this is correct

    StatefulSet assigns each pod a stable ordinal hostname and its own PersistentVolumeClaim, so replicas keep predictable DNS names and storage across restarts. This directly satisfies the stem's requirement for stable network identities and per-pod persistent storage, which a Deployment's interchangeable pods cannot provide.

  • ✗

    Job

    Why it's wrong here

    A Job runs pods to completion for batch or one-off tasks, then stops; it offers no stable identity or persistent storage across restarts. Stateful applications require continuous, ordered pod management. Jobs are the right choice for finite processing such as database migrations or report generation.

  • ✗

    Deployment

    Why it's wrong here

    A Deployment manages stateless replicas with interchangeable pod identities and no persistent volume binding per replica. Stateful workloads need StatefulSet, which assigns ordinal names and stable PersistentVolumeClaims. Deployments suit stateless web tiers where any pod can serve any request and storage is shared or absent.

About these practice questions

Courseiva writes every KCNA question from scratch — 930 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.