KCNA Kubernetes Fundamentals Practice Question
Which two scenarios would benefit from using a StatefulSet instead of a Deployment? (Choose two.)
⚠ Common exam trap
Candidates often confuse the need for stable network identities (StatefulSet) with the ability to run on any node (Deployment), or mistakenly think batch jobs fit into StatefulSets because they involve 'state' like logs.
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
✓
An application that requires persistent storage unique to each instance
StatefulSets are designed for applications that require unique, persistent storage per Pod. Each Pod in a StatefulSet gets its own PersistentVolumeClaim (PVC) that is not shared, ensuring data isolation and durability even if the Pod is rescheduled. This is essential for stateful workloads like databases or message queues.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
An application that requires persistent storage unique to each instance
Why this is correct
StatefulSet can use PersistentVolumeClaims with unique volumes per pod.
- ✓
A database cluster that requires stable network identities
Why this is correct
StatefulSet provides stable hostnames.
- ✗
A batch job that runs once and exits
Why it's wrong here
Batch jobs require a finite execution lifecycle where pods terminate upon completion, whereas StatefulSets maintain stable network identities and persistent storage bindings for long-running, stateful instances. This scenario is tempting because both manage workloads on Kubernetes; however, Jobs are the correct mechanism for one-off tasks that exit, while StatefulSets provide the ordinal index and persistent volume retention required by distributed databases.
- ✗
A stateless web application that can scale horizontally
Why it's wrong here
A stateless web application scales horizontally by adding replicas with no need for stable network identities or persistent storage per instance, which a Deployment handles through its default replica management. StatefulSet is tempting because it is designed for workloads requiring ordered startup, unique network identifiers, and persistent volumes—scenarios like databases or message queues where each pod must maintain its own state across rescheduling.
- ✗
A microservice that can use any available node
Why it's wrong here
Deployment is fine for microservices without special ordering or storage.
Go deeper
Related to this question
About these practice questions
This KCNA question is part of Courseiva's 833-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 →
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.