Bird
0
0

Which command correctly shows current CPU and memory usage of pods in Kubernetes?

easy📝 Command Output Q12 of 15
Kubernetes - Monitoring and Logging
Which command correctly shows current CPU and memory usage of pods in Kubernetes?
Akubectl monitor pods
Bkubectl get pods --usage
Ckubectl top pods
Dkubectl describe pods --metrics
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command for resource usage

    The kubectl top pods command shows CPU and memory usage of pods.
  2. Step 2: Check other options for correctness

    Other commands are invalid or do not show usage metrics.
  3. Final Answer:

    kubectl top pods -> Option C
  4. Quick Check:

    Usage command = kubectl top pods [OK]
Quick Trick: Use 'kubectl top pods' to see pod resource usage [OK]
Common Mistakes:
  • Using 'kubectl get pods --usage' which is invalid
  • Confusing 'describe' with usage metrics
  • Assuming 'kubectl monitor' is a valid command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes