Which command would undo the most recent Deployment rollout?

Prepare for the Kubernetes Cloud Native Associate (KCNA) Certification test with engaging questions and detailed explanations. Perfect your knowledge and boost your confidence to pass the exam successfully!

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