Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKAD Topic 2 Question 33 Discussion

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

Refer to 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:

Josefa
2 months ago
Piece of cake! I'll just copy and paste the solution and be done with it. Who needs to read the whole question when the answer is right there?
upvoted 0 times
Viola
8 days ago
I guess I should take the time to read through the question and solution properly.
upvoted 0 times
...
Noel
1 months ago
You should try to understand the solution so you can apply it in different scenarios.
upvoted 0 times
...
Edna
1 months ago
Just copying and pasting the solution won't help you understand the concept.
upvoted 0 times
...
Eden
1 months ago
You're right. It's important to understand the process to apply it in different scenarios.
upvoted 0 times
...
Carissa
1 months ago
Just copying and pasting the solution won't help you understand the concept.
upvoted 0 times
...
...
Glendora
2 months ago
Ha! They're really trying to catch us with that Fluentd stuff. But I bet if I just follow the instructions carefully, I can get this done without too much trouble.
upvoted 0 times
...
Cordie
2 months ago
This looks like a classic Kubernetes deployment scenario. I'm confident I can handle this, as long as I pay attention to the volume mounting and container command details.
upvoted 0 times
Elmer
1 months ago
Got it, I'll make sure to follow the instructions carefully for this Kubernetes deployment.
upvoted 0 times
...
Vincenza
1 months ago
Make sure to also pay attention to the command that the logger-dev container should run.
upvoted 0 times
...
Pearly
1 months ago
Yes, that's important for the log files to be accessible by both containers.
upvoted 0 times
...
Valentin
2 months ago
I think the key here is to mount the shared volume /tmp/log on both containers.
upvoted 0 times
...
...
Bea
2 months ago
Do you have a strategy for solving it?
upvoted 0 times
...
Cassie
2 months ago
The question is clear and the expected solution seems straightforward. I'll need to review the Fluentd configuration file and make sure I understand how to mount it correctly.
upvoted 0 times
...
Cristina
2 months ago
I agree, but I think I understand the task.
upvoted 0 times
...
Bea
3 months ago
This question seems complex.
upvoted 0 times
...

Save Cancel