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 CKAD Exam - Topic 9 Question 5 Discussion

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

Exhibit:

Given a container that writes a log file in format A and a container that converts log files from format A to format B, create a deployment that runs both containers such that the log files from the first container are converted by the second container, emitting logs in format B.

Task:

* Create a deployment named deployment-xyz in the default namespace, that:

* Includes a primary

lfccncf/busybox:1 container, named logger-dev

* includes a sidecar Ifccncf/fluentd:v0.12 container, named adapter-zen

* Mounts a shared volume /tmp/log on both containers, which does not persist when the pod is deleted

* Instructs the logger-dev

container to run the command

which should output logs to /tmp/log/input.log in plain text format, with example values:

* The adapter-zen sidecar container should read /tmp/log/input.log and output the data to /tmp/log/output.* in Fluentd JSON format. Note that no knowledge of Fluentd is required to complete this task: all you will need to achieve this is to create the ConfigMap from the spec file provided at /opt/KDMC00102/fluentd-configma p.yaml , and mount that ConfigMap to /fluentd/etc in the adapter-zen sidecar container

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Clemencia
5 months ago
I’m not sure about the image versions, are they the latest?
upvoted 0 times
...
Nida
5 months ago
I think the logger-dev container should output to /tmp/log/input.log, right?
upvoted 0 times
...
Omer
5 months ago
Wait, does Fluentd really need a ConfigMap? Seems complicated.
upvoted 0 times
...
Aleisha
5 months ago
Totally agree, sidecars are super useful for this!
upvoted 0 times
...
Stefanie
5 months ago
Looks like we need a shared volume for the logs!
upvoted 0 times
...
Markus
5 months ago
I feel like I’ve seen a question where the sidecar was supposed to process logs, but I can’t recall the exact command we used.
upvoted 0 times
...
Thomasena
5 months ago
I’m a bit confused about the ConfigMap. Do we need to reference it in the deployment spec, or is it automatically picked up?
upvoted 0 times
...
Wendell
5 months ago
I think the key is to ensure the logger-dev outputs to the correct path. We did a question where the output path was crucial.
upvoted 0 times
...
Blondell
5 months ago
I remember we practiced something similar with sidecar containers, but I’m not sure about the volume mounting part.
upvoted 0 times
...
Sage
6 months ago
Hmm, I'm not totally sure about this one. I'll have to review the options again and see if I can figure out the best approach.
upvoted 0 times
...
Arlyne
6 months ago
I think Laplace smoothing is the way to go here. It's designed to handle the issue of zero probabilities, which is exactly what we're dealing with in this case.
upvoted 0 times
...
Sylvia
6 months ago
I'm pretty confident I know the answer to this one. The key is understanding the access modifiers and how they impact method visibility.
upvoted 0 times
...
Jessenia
6 months ago
Hmm, I'm a bit confused by the different number formats mentioned. I'll need to review my notes on E.164, PSTN, and DN formats to make sure I understand the differences.
upvoted 0 times
...

Save Cancel