Linux_FoundationLinux_Foundation
KCNA · Question #205
KCNA Question #205: Real Exam Question with Answer & Explanation
The correct answer is A: Init container. Init containers are used to perform setup tasks that must complete successfully before the main application containers in a Pod start.
Submitted by naveen.iyer· May 4, 2026Kubernetes Fundamentals
Question
To run a startup task before a Pod's container starts up. What Kubernetes feature can help you ac-complish this?
Options
- AInit container
- BSidecar container
- CStartup probe
- DDaemonSet
Explanation
Init containers are used to perform setup tasks that must complete successfully before the main application containers in a Pod start.
Common mistakes.
- B. A sidecar container runs alongside the main application container throughout its lifecycle, typically providing auxiliary functions like logging or monitoring, not pre-startup tasks.
- C. A startup probe is a type of liveness or readiness probe that indicates when a container has successfully started, preventing other probes from affecting application startup, but it does not execute a task itself.
- D. A DaemonSet ensures that a copy of a Pod runs on all or selected nodes in a cluster; it is a controller for deploying pods, not a mechanism for pre-startup tasks within a single pod.
Concept tested. Init containers for startup tasks
Reference. https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
Topics
#Init Containers#Pod Lifecycle#Startup Tasks#Container Execution Order
Community Discussion
No community discussion yet for this question.