VMware Carbon Black Cloud Enterprise EDR (2020) — Question 83
Which kubectl command is used to list the Kubernetes services in the current active namespace?
Answer options
- A. kubectl get services
- B. kubectl get loadbalancer
- C. kubectl services get ip
- D. kubectl list services
Correct answer: A
Explanation
The command 'kubectl get services' is the correct way to list services in the current namespace. The other options either use incorrect syntax or refer to commands that do not exist in kubectl, making them invalid for this purpose.