Exhibit:

Context
You sometimes need to observe a pod's logs, and write those logs to a file for further analysis.
Task
Please complete the following;
* Deploy the counter pod to the cluster using the provided YAMLspec file at /opt/KDOB00201/counter.yaml
* Retrieve all currently available application logs from the running pod and store them in the file /opt/KDOB0020l/log_Output.txt, which has already been created
Suggested Answer: A
Get Premium CKAD Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
11 comments · newest first
PA
Paul
12 months ago
I think there's a typo in the output file path. Should be /opt/KDOB0020l/log_Output.txt, right?
WI
Wilda
1 year ago
Yup, you can use `kubectl logs` to get the logs from the pod.
SH
Shonda
1 year ago
Wait, are we sure the logs will be in that file? Seems off.
LI
Lilli
1 year ago
Totally agree, that's the first step!
JE
Jestine
1 year ago
Just deploy the pod using the YAML file at /opt/KDOB00201/counter.yaml.
MI
Milly
1 year ago
I definitely practiced retrieving logs before, but I can't remember if I need to specify the pod name or just use a wildcard.
LO
Lou
1 year ago
I feel a bit uncertain about the file path for storing logs. Was it /opt/KDOB0020l or something else?
MA
Matt
1 year ago
I think I remember how to deploy a pod using a YAML file, but I'm not entirely sure about the exact command syntax.
JO
Joanna
1 year ago
This seems similar to a practice question we did on logging. I hope I can recall the right command to retrieve the logs.
VA
Valentin
1 year ago
Hmm, I'm not entirely sure about this one. I'll need to carefully consider the different types of organizations and their potential exposure to electronic credit card data theft.
SU
Susana
1 year ago
Hmm, I'm a bit confused by the question. I'll need to re-read the details and the options to make sure I understand what the goal is and how to best accomplish it.