New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKAD Exam - Topic 4 Question 8 Discussion

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

Context

Anytime a team needs to run a container on Kubernetes they will need to define a pod within which to run the container.

Task

Please complete the following:

* Create a YAML formatted pod manifest

/opt/KDPD00101/podl.yml to create a pod named app1 that runs a container named app1cont using image Ifccncf/arg-output

with these command line arguments: -lines 56 -F

* Create the pod with the kubect1 command using the YAML file created in the previous step

* When the pod is running display summary data about the pod in JSON format using the kubect1 command and redirect the output to a file named /opt/KDPD00101/out1.json

* All of the files you need to work with have been created, empty, for your convenience

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Bambi
4 months ago
This is a solid example of how to set up a pod.
upvoted 0 times
...
Jenelle
4 months ago
I think the image name is a bit off, double-check that!
upvoted 0 times
...
Meghann
5 months ago
Wait, do we really need to specify all those command line args?
upvoted 0 times
...
Iesha
5 months ago
Totally agree, it's super straightforward!
upvoted 0 times
...
Tanesha
5 months ago
Just need to define a pod in YAML to run the container.
upvoted 0 times
...
Cherrie
5 months ago
I think the JSON output command is `kubectl get pod app1 -o json > /opt/KDPD00101/out1.json`, but I need to double-check the pod name and output redirection part.
upvoted 0 times
...
Cordell
5 months ago
For the kubectl command to create the pod, I believe it’s something like `kubectl apply -f /opt/KDPD00101/podl.yml`, but I might be mixing it up with another command.
upvoted 0 times
...
Edna
5 months ago
I remember practicing a similar question where we had to create a pod with specific labels. I hope I can recall the right structure for this one.
upvoted 0 times
...
Darrin
5 months ago
I think the pod manifest needs to specify the container image and the command line arguments, but I'm not entirely sure about the exact YAML syntax.
upvoted 0 times
...
Remedios
5 months ago
Hmm, this looks like a tricky one. I'll need to think carefully about the different package management commands and what they do.
upvoted 0 times
...
Alaine
6 months ago
The wording in these options is tricky. I'm going to re-read them a few times to make sure I understand the differences before selecting an answer.
upvoted 0 times
...

Save Cancel