🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.kubectl delete deploy/courses-api
  2. B.kubectl rollout undo deploy/courses-api
  3. C.kubectl scale deploy/courses-api --replicas=0
  4. 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 →