Intermediate
Kubernetes
Q54 / 100
What does the "kubectl rollout restart deployment/<name>" command accomplish?
Correct! Well done.
Incorrect.
The correct answer is B) It performs a rolling restart of all Pods in the deployment, recreating them one by one without downtime, even if the spec hasn't changed (e.g. to pick up an updated Secret)
B
Correct Answer
It performs a rolling restart of all Pods in the deployment, recreating them one by one without downtime, even if the spec hasn't changed (e.g. to pick up an updated Secret)
Explanation
A rolling restart recreates Pods gradually following the same rolling update strategy, useful when underlying ConfigMaps/Secrets change but the Pod template itself hasn't, since Kubernetes doesn't automatically restart Pods on Secret/ConfigMap changes.
Progress
54/100