Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKA Topic 3 Question 64 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 64
Topic #: 3
[All CKA Questions]

Score:7%

Context

An existing Pod needs to be integrated into the Kubernetes built-in logging architecture (e. g. kubectl logs). Adding a streaming sidecar container is a good and common way to accomplish this requirement.

Task

Add a sidecar container named sidecar, using the busybox Image, to the existing Pod big-corp-app. The new sidecar container has to run the following command:

/bin/sh -c tail -n+1 -f /va r/log/big-corp-app.log

Use a Volume, mounted at /var/log, to make the log file big-corp-app.log available to the sidecar container.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Lewis
5 months ago
The command to tail the log file is on point. I'm glad they didn't overcomplicate it.
upvoted 0 times
...
Sherman
5 months ago
This solution is going to be very helpful for troubleshooting and monitoring the big-corp-app pod. Well thought out.
upvoted 0 times
...
Corinne
5 months ago
Haha, I wonder if the big-corp-app is generating log entries about the best coffee in the break room.
upvoted 0 times
German
4 months ago
Let's add that sidecar container and find out!
upvoted 0 times
...
Jose
4 months ago
Maybe we should check the logs and see if there are any coffee-related entries.
upvoted 0 times
...
Elin
4 months ago
I can imagine the logs now, 'Coffee machine refilled at 9am, best coffee ever!'
upvoted 0 times
...
Layla
5 months ago
That would be hilarious!
upvoted 0 times
...
...
Eve
5 months ago
Yes, and running the tail command in the sidecar container is crucial for real-time logging.
upvoted 0 times
...
Fernanda
5 months ago
Looks straightforward, the sidecar container is set up correctly to stream the log file.
upvoted 0 times
Sheridan
5 months ago
Yes, it seems like the log streaming setup is working as expected.
upvoted 0 times
...
Herman
5 months ago
Great job! The sidecar container is configured properly.
upvoted 0 times
...
...
Vallie
6 months ago
I think the key is to properly mount the volume for the log file.
upvoted 0 times
...
Lezlie
6 months ago
I agree, setting up a sidecar container can be tricky.
upvoted 0 times
...
Marla
6 months ago
This question seems challenging.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77