You run 'kubectl rollout undo deployment/app'. What happens?
`kubectl rollout undo deployment app` reverts the Deployment's pod template to the previous revision, which the Deployment controller uses to create a new ReplicaSet with that older specification. The current ReplicaSet is scaled down to zero while the previous one is scaled up, effectively rolling back the application state without deleting the Deployment object or its history.
Why this answer
The 'kubectl rollout undo' command rolls back a Deployment to the previous revision. By default, it reverts to the immediate prior revision (revision 1 less than current).