nerdexam
Linux_FoundationLinux_Foundation

CKAD · Question #16

CKAD Question #16: Real Exam Question with Answer & Explanation

Sign in or unlock CKAD to reveal the answer and full explanation for question #16. The question stem and answer options stay visible for context.

Submitted by certguy· May 4, 2026Application Environment, Configuration and Security

Question

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 lfccncf/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 ``` while true; do echo "i luv cncf" >> /tmp/log/input.log; sleep 10; done ``` which should output logs to /tmp/log/input.log in plain text format, with example values: ``` i luv cncf i luv cncf i luv cncf ``` • 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 create 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

Unlock CKAD to see the answer

You've previewed enough free CKAD questions. Unlock CKAD for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Sidecar pattern#EmptyDir volume#ConfigMap#Multi-container pod
Full CKAD PracticeBrowse All CKAD Questions