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

Docker Exam DCA Topic 1 Question 65 Discussion

Actual exam question for Docker's DCA exam
Question #: 65
Topic #: 1
[All DCA Questions]

Your organization has a centralized logging solution, such as Splunk.

Will this configure a Docker container to export container logs to the logging solution?

Solution. Set the log-driver-and log-opt keys to values for the logging solution (Splunk) in the daemon.json file.

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Verda
10 days ago
Splunk, huh? I wonder if they have a plugin for 'Why is my container not working?' logs.
upvoted 0 times
...
Denna
12 days ago
Centralized logging? That's just fancy talk for 'dump all the logs into a big pile and hope someone can find what they need.'
upvoted 0 times
...
Jospeh
13 days ago
Wait, we're supposed to edit the daemon.json file? That sounds like a job for the DevOps team. I'll just stick to running my containers and let the sysadmins handle the logging stuff.
upvoted 0 times
...
Alita
20 days ago
Ah, I see what they're going for. If you've got a centralized logging solution like Splunk, this is the way to get your container logs into it. Easy peasy!
upvoted 0 times
...
Wilburn
26 days ago
Hmm, I'm not so sure. Doesn't this just configure the Docker daemon, not the individual containers? I'll have to double-check the documentation on that.
upvoted 0 times
Marcos
20 days ago
User 1: Yes
upvoted 0 times
...
...
Starr
1 months ago
Sure, that's what the question is asking for. Setting the log-driver and log-opt keys in the daemon.json file should do the trick.
upvoted 0 times
Dion
15 days ago
Exactly, that should export the container logs to the centralized logging solution.
upvoted 0 times
...
Jutta
18 days ago
So, we just need to configure the log-driver and log-opt keys in the daemon.json file.
upvoted 0 times
...
Ettie
19 days ago
Great, thanks for confirming!
upvoted 0 times
...
Sabrina
27 days ago
Yes
upvoted 0 times
...
...
Lindy
2 months ago
No, I prefer to keep logs within the container for security reasons.
upvoted 0 times
...
Florinda
2 months ago
I think it's a good idea to centralize logging with Splunk for better monitoring and analysis.
upvoted 0 times
...
Micheline
2 months ago
Yes, it will configure a Docker container to export logs to Splunk.
upvoted 0 times
...

Save Cancel