KCNA practice question 6 of 25
In Kubernetes, which command is the most efficient way to check the progress of a Deployment rollout and confirm if it has completed successfully?
Full set: 240 questionsThe kubectl rollout status command is specifically designed to monitor the progress of a Deployment's update in real-time. It actively watches the resource and provides live feedback as new pods are created and old ones are terminated. The command exits with a zero status code upon successful completion or a non-zero code on failure, making it the most efficient tool for both interactive checks and automated scripting within CI/CD pipelines. Other commands provide static snapshots of information, requiring repeated execution to track progress.
A. kubectl get deployments provides a static, one-time view of the deployment's state, not a continuous progress report.
B. kubectl describe deployment gives a detailed but static snapshot of the configuration and recent events, not an efficient live status check.
C. kubectl logs is used to view the output from application containers, not to check the status of the Kubernetes deployment process itself.
1. Kubernetes Documentation, "kubectl Cheat Sheet", kubectl Commands section. The entry for kubectl rollout status states it is used to "Watch the rollout status of a deployment."
2. Kubernetes Documentation, "Tasks > Manage Deployments > Checking Rollout Status of a Deployment". This section explicitly recommends kubectl rollout status deployment/ as the standard method.
3. O'Reilly, "Kubernetes Up and Running, 3rd Edition" by Brendan Burns, Joe Beda, Kelsey Hightower, and Lachlan Evenson. Chapter 10, "Deployments", describes using kubectl rollout status to monitor the progress of an update.
Keep practicing
Take the free KCNA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other KCNA practice questions
- Question 1Which of these commands is used to retrieve the documentation and field definitions for a…
- Question 2Kubernetes Secrets are specifically intended to hold confidential dat a. Which API object…
- Question 3What is the practice of bringing financial accountability to the variable spend model of …
- Question 7What Kubernetes component handles network communications inside and outside of a cluster,…
- Question 8Kubernetes supports multiple virtual clusters backed by the same physical cluster. These …
- Question 9What is Flux constructed with?
