VMware NSX-T Data Center (VCP-NV 2020) — Question 19
Which command would an administrator run to access the logs for a specific service?
Answer options
- A. vracli logs -n prelude <pod-name>
- B. kubectl logs -n prelude <pod-name>
- C. docker logs --tail
- D. kubectl -n prelude get pods
Correct answer: A
Explanation
The command 'vracli logs -n prelude <pod-name>' is specifically designed to access logs for a service in the specified namespace. The other options, while related to logging or retrieving pod information, do not directly retrieve logs for the service in question. 'kubectl logs' is close but not the correct CLI for this particular service.