A developer needs the current stdout/stderr from Pods managed by Deployment myapp. Which command pattern retrieves those application logs?
Select an answer to reveal the explanation.
Short Explanation
App truth often lives in the logs. kubectl logs deploy/myapp (or a specific Pod) pulls the current container stdout/stderr so you can see crashes and request errors. Secrets and annotations aren’t where the runtime log stream lives.
Full Explanation
kubectl logs fetches container logs from kubelet-managed files for Pods or higher-level controllers such as Deployments (selecting a Pod). That is the primary built-in way to utilize application logs during CKAD-style troubleshooting. Copying /etc, reading Secrets, or annotating desired messages does not retrieve the live log stream.