Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKAD Topic 5 Question 58 Discussion

Actual exam question for Linux Foundation's CKAD exam
Question #: 58
Topic #: 5
[All CKAD Questions]

Refer to Exhibit.

Set Configuration Context:

[student@node-1] $ | kubectl

Config use-context k8s

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

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Hershel
13 days ago
I wonder if the person who wrote this question has ever actually used Kubernetes in a real-world scenario, or if they just read about it in a book and decided to torture us all.
upvoted 0 times
...
Krissy
18 days ago
Wait, there's a pod called 'counter'? I bet it just increments a number every second. I wonder if I can make it count up to a million before the exam is over.
upvoted 0 times
...
Evette
21 days ago
I'm pretty sure I've used the kubectl logs command before, but I always forget the exact syntax. Hopefully, I can just copy the example and be done with it.
upvoted 0 times
Lynette
2 days ago
Make sure to use the kubectl logs command with the -f option to stream the logs.
upvoted 0 times
...
...
Stephanie
1 months ago
Seriously, why do they always make us work with files in these exams? Just give me a command-line interface and let me figure it out!
upvoted 0 times
Nobuko
2 days ago
Yeah, I wish they would focus more on practical tasks.
upvoted 0 times
...
Twanna
15 days ago
I know, dealing with files can be a hassle sometimes.
upvoted 0 times
...
...
Kayleigh
1 months ago
Ah, finally a question that doesn't involve writing YAML from scratch. I'll just follow the steps in the solution and hope I get it right!
upvoted 0 times
...
Caren
2 months ago
The solution provided explains how to use kubectl apply and kubectl logs commands for this task.
upvoted 0 times
...
Anastacia
2 months ago
Yes, we need to deploy the counter pod and store its logs in a file.
upvoted 0 times
...
Caren
2 months ago
I think the question is about deploying a pod and retrieving its logs.
upvoted 0 times
...

Save Cancel