Container Orchestration Flashcards
7 cards from real KCNA practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Container Orchestration flashcards as text
Which Kubernetes resource guarantees that a minimum number of Pods in a Deployment remain available during voluntary disruptions?
Answer: PodDisruptionBudget
A PodDisruptionBudget (PDB) limits the number of Pods of a replicated application that are down simultaneously during voluntary disruptions.
What is the effect of adding a taint `NoSchedule` to a node?
Answer: New Pods without a matching toleration will not be scheduled on the node
A `NoSchedule` taint prevents new Pods from being scheduled on the node unless they have a matching toleration.
In a StatefulSet, how are Pods named?
Answer: Sequential ordinal names (e.g., pod-0, pod-1)
StatefulSet Pods receive stable, predictable names using an ordinal index appended to the StatefulSet name.
Which Kubernetes object is best suited for running a batch job that should execute to completion exactly once?
Answer: Job
A Job creates one or more Pods and ensures they successfully terminate, making it ideal for one-time batch tasks.
What does the `imagePullPolicy: Always` setting do in a container spec?
Answer: Pulls the image every time the container starts, even if locally cached
With `Always`, Kubernetes pulls the container image from the registry on every Pod start, bypassing the local cache.
Which probe type in Kubernetes checks whether a container is ready to serve traffic?
Answer: readinessProbe
A readinessProbe determines if a container is ready to accept traffic; failing Pods are removed from Service endpoints.
What is the function of an Init Container in a Pod?
Answer: Runs before app containers and must complete successfully before they start
Init Containers run sequentially before app containers and must exit successfully; they are used for setup tasks.