exam questions

Exam KCNA All Questions

View all questions & answers for the KCNA exam

Exam KCNA topic 1 question 49 discussion

Actual exam question from Linux Foundation's KCNA
Question #: 49
Topic #: 1
[All KCNA Questions]

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

  • A. kubectl rollout watch
  • B. kubectl rollout progress
  • C. kubectl rollout state
  • D. kubectl rollout status
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hovnival
Highly Voted 7 months, 2 weeks ago
Selected Answer: 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.
upvoted 5 times
...
Hach233
Most Recent 4 weeks ago
Selected Answer: D
D
upvoted 1 times
...
heniabida
4 weeks ago
Selected Answer: D
❯ kubectl rollout watch error: unknown command "watch" Available Commands: history View rollout history pause Mark the provided resource as paused restart Restart a resource resume Resume a paused resource status Show the status of the rollout undo Undo a previous rollout --> So answer is D
upvoted 1 times
...
yoyo2424
1 month ago
D is correct answer
upvoted 1 times
...
mc2301
2 months ago
kubectl rollout watch Purpose: This command is not a standard kubectl command. It seems like a misunderstanding or a mix-up with kubectl get events --watch or similar commands that watch for changes in resources. Behavior: If you meant kubectl get events --watch, it watches for changes in events related to the resources in the cluster, providing real-time updates. Answer: D
upvoted 1 times
...
miskill
2 months, 1 week ago
Selected Answer: D
D. is correct "kubectl rollout status"
upvoted 1 times
...
vspringe
2 months, 2 weeks ago
Selected Answer: D
D. kubectl rollout status Correct. kubectl rollout watch is not a valid Kubernetes command.
upvoted 1 times
...
miskill
2 months, 3 weeks ago
Selected Answer: D
The correct answer to the question "How can you monitor the progress for an updated Deployment/DaemonSets/StatefulSets?" is D. kubectl rollout status. Explanation: The kubectl rollout status command is used to monitor the progress of a rollout for Kubernetes resources such as Deployments, DaemonSets, or StatefulSets. This command provides real-time updates on whether the new Pods are being created correctly and whether the old ones are being terminated. It ensures that the rollout is proceeding as expected and alerts if any issues occur during the update. Other options like kubectl rollout watch, kubectl rollout progress, and kubectl rollout state are not valid Kubernetes commands for monitoring rollout progress. The proper command to use for tracking progress is kubectl rollout status
upvoted 1 times
...
SeaH0rse66
6 months, 2 weeks ago
Selected Answer: 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.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...