← Quiz: Kubernetes Basics: all 10 questions
Quiz: Kubernetes Basics · Question 4 of 10
Which command rolls a Deployment back to the previous version?
Which command rolls a Deployment back to the previous version?
- A.kubectl delete deploy/courses-api
- B.kubectl rollout undo deploy/courses-api
- C.kubectl scale deploy/courses-api --replicas=0
- D.kubectl logs deploy/courses-api
Answer & explanation
Correct answer: kubectl rollout undo deploy/courses-api
rollout undo restores the previous ReplicaSet.
Can you get the rest right without peeking?
Take the timed Quiz: Kubernetes Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →