Bird
0
0

What will be the output of kubectl rollout history deployment/api-server --revision=2 if revision 2 exists?

medium📝 Command Output Q5 of 15
Kubernetes - ReplicaSets and Deployments
What will be the output of kubectl rollout history deployment/api-server --revision=2 if revision 2 exists?
ADetails of deployment revision 2 including changes made
BError: revision 2 does not exist
CList of all revisions for deployment api-server
DCurrent status of deployment api-server
Step-by-Step Solution
Solution:
  1. Step 1: Understand the --revision flag

    The --revision=2 flag requests details for a specific revision number.
  2. Step 2: Expected output if revision exists

    If revision 2 exists, the command shows detailed info about that revision's changes.
  3. Final Answer:

    Details of deployment revision 2 including changes made -> Option A
  4. Quick Check:

    Revision flag shows specific revision details [OK]
Quick Trick: Use --revision to see details of a specific deployment version [OK]
Common Mistakes:
  • Expecting list of all revisions with --revision flag
  • Confusing revision details with current status
  • Assuming error if revision exists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes