A team defines a Pod with one init container and two application containers. They want to understand the ordering guarantee that init containers provide. Which statement correctly describes how init containers behave relative to the application containers?
- AInit containers run to completion in order before any application container starts Correct
- BInit containers and application containers start together, but init containers are given higher CPU priority
- CInit containers run continuously alongside the application containers as sidecars
- DInit containers start only after the application containers report readiness
Why A is correct: Init containers execute sequentially and each must finish successfully before the next runs, and only after all init containers complete do the application containers start.
Why B is wrong: Prioritised startup sounds plausible for setup work, but init containers do not start alongside the app containers at all; they run first and to completion, and CPU priority is not the mechanism.
Why C is wrong: This confuses init containers with the sidecar pattern; a classic init container terminates before the app containers begin rather than running for the life of the Pod.
Why D is wrong: Reversing the order is a common mistake, but init containers precede the application containers, so they cannot wait on app-container readiness that has not yet occurred.