Exam KCNA All QuestionsBrowse all questions from this exam
Question 46

How can you monitor the progress for an updated Deployment/DaemonSets/StatefulSets?

    Correct Answer: D

    To monitor the progress of an updated Deployment, DaemonSet, or StatefulSet, the command 'kubectl rollout status' is the appropriate choice. This command provides detailed information about the current status of the rollout, applicable across various Kubernetes objects like Deployments, DaemonSets, and StatefulSets.

Discussion
hovnivalOption: A

In summary, both commands "kubectl rollout status" and "kubectl rollout watch" provide a real-time feedback on rollout progress but "kubectl rollout watch" continuously watches until completion while "kubectl rollout status" provides a snapshot of the current status.

SeaH0rse66Option: D

Option A (kubectl rollout watch) is not the correct choice because the kubectl rollout watch command is used to continuously monitor the rollout progress of a deployment, allowing you to watch for changes in the rollout status in real-time. However, it is specifically designed for monitoring deployments and does not directly apply to DaemonSets or StatefulSets. While you could use kubectl rollout watch for deployments, it may not provide accurate or relevant information for DaemonSets or StatefulSets. Therefore, option A is not the most suitable command for monitoring the progress of updates to DaemonSets or StatefulSets. On the other hand, option D (kubectl rollout status) is a more generic command that works for all types of rollouts, including deployments, DaemonSets, and StatefulSets. It provides detailed information about the status of the rollout, making it a better choice for monitoring the progress of updates across different types of workload controllers in Kubernetes.