Kubernetes and Cloud Native Associate (KCNA) — Question 142

If kubectl is failing to retrieve information from the cluster, where can you find pod logs to troubleshoot?

Answer options

Correct answer: A

Explanation

The correct answer is A, as pod logs are typically stored in the /var/log/pods/ directory, which can be accessed for troubleshooting purposes. Options B and D do not contain logs; B is a configuration file for kubectl and D is related to Kubernetes configuration. Option C is also incorrect as /var/log/k8s/ is not a standard log directory for pod logs.