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

Posted by Jutta on May 08, 2022 at 04:20 AM

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

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
13 comments · newest first
CL
Clemencia 1 year ago
I’m not sure about the image versions, are they the latest?
NI
Nida 1 year ago
I think the logger-dev container should output to /tmp/log/input.log, right?
OM
Omer 1 year ago
Wait, does Fluentd really need a ConfigMap? Seems complicated.
AL
Aleisha 1 year ago
Totally agree, sidecars are super useful for this!
ST
Stefanie 1 year ago
Looks like we need a shared volume for the logs!
MA
Markus 1 year 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.
TH
Thomasena 1 year 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?
WE
Wendell 1 year 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.
BL
Blondell 1 year ago
I remember we practiced something similar with sidecar containers, but I’m not sure about the volume mounting part.
SA
Sage 1 year 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.
AR
Arlyne 1 year 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.
SY
Sylvia 1 year 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.
JE
Jessenia 1 year 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.
0/2000 characters

Save Cancel