Study. uk . com
  1. Home
  2. All questions
  3. Question 986

CKA study material · question 986 of 1000

An application requires its cache container to stop before its API container. What does Kubernetes offer?

  1. A terminationOrder field on the Pod spec
  2. Ordering by container declaration order
  3. Ordering by container restart policy
  4. A preStop hook to impose the ordering
Show the answer

Answer: D. A preStop hook to impose the ordering

Ordinary containers in a Pod are shut down in no defined order, so a preStop hook is the documented way to impose one where the order matters.

Source: Pod Lifecycle (Kubernetes) — Termination of Pods › Pod Termination Flow

Challenge yourself on this topic → Study as cards