Which command would undo the most recent Deployment rollout?

Prepare for the KCNA Certification Test. Study with flashcards, multiple-choice questions, and detailed explanations to enhance your understanding of Kubernetes Cloud Native concepts. Ace your exam!

Multiple Choice

Which command would undo the most recent Deployment rollout?

Explanation:
Undoing the latest Deployment rollout means reverting to the previous revision of the Deployment. In Kubernetes, each rollout creates a new ReplicaSet and stores rollout history, so you can revert to what worked before. The command kubectl rollout undo deployment/<name> uses that history to restore the Deployment to its prior state (the previous ReplicaSet). You can optionally specify a particular revision with --to-revision if you need a specific point in history. The other options don’t perform a rollback: applying a manifest updates resources, deleting the Deployment removes it, and scaling changes the number of replicas without reverting the rollout.

Undoing the latest Deployment rollout means reverting to the previous revision of the Deployment. In Kubernetes, each rollout creates a new ReplicaSet and stores rollout history, so you can revert to what worked before. The command kubectl rollout undo deployment/ uses that history to restore the Deployment to its prior state (the previous ReplicaSet). You can optionally specify a particular revision with --to-revision if you need a specific point in history. The other options don’t perform a rollback: applying a manifest updates resources, deleting the Deployment removes it, and scaling changes the number of replicas without reverting the rollout.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy