Exam 5v0-2320 All QuestionsBrowse all questions from this exam
Question 34

Which kubectl command is used to list all pods in the current active namespace?

    Correct Answer: B

    The correct command to list all pods in the current active namespace is 'kubectl get pods'. This command retrieves and displays a list of pods along with details such as their status, age, and other relevant information. Other options like 'kubectl get nodes' and 'kubectl get services' list nodes and services respectively, while 'kubectl list pods' is not a valid kubectl command.

Discussion
hicallOption: B

i think it's B since stated on kubernetes official website. https://kubernetes.io/docs/reference/kubectl/cheatsheet/

[Removed]Option: B

Option B Running this command will display a list of all pods running in the current active namespace along with their status, age, and other relevant information.

MwafrikaOption: B

B. https://docs.vmware.com/en/VMware-vSphere/7.0/vsphere-esxi-vcenter-server-703-vsphere-with-tanzu-guide.pdf?hWord=N4IghgNiBcIOoAswBcAEBLAzq5CCmqAxgPYBOpehaADqcYXptssapixRgLZgDmjGAHaowqWsQBWlNMWG4CAJTy8syUgE9UAZTykAbugYgAvkA