Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
27 days ago
Splunk, huh? I wonder if they have a plugin for 'Why is my container not working?' logs.
upvoted 0 times
Cecilia
17 days ago
Yes
upvoted 0 times
...
...
Denna
29 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
1 months 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
Rodrigo
7 days ago
A) Yes
upvoted 0 times
...
...
Alita
1 months 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
Alonzo
5 days ago
A) Yes
upvoted 0 times
...
Peggy
10 days ago
That's right! Setting the log-driver-and log-opt keys in the daemon.json file will allow Docker containers to export logs to Splunk.
upvoted 0 times
...
Doretha
13 days ago
A) Yes
upvoted 0 times
...
...
Wilburn
1 months 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
Joaquin
6 days ago
User 3: I think it only configures the Docker daemon
upvoted 0 times
...
Annmarie
7 days ago
User 2: No
upvoted 0 times
...
Marcos
1 months ago
User 1: Yes
upvoted 0 times
...
...
Starr
2 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
Larae
3 days ago
Great, thanks for confirming!
upvoted 0 times
...
Margarett
15 days ago
Yes
upvoted 0 times
...
Dion
1 months ago
Exactly, that should export the container logs to the centralized logging solution.
upvoted 0 times
...
Jutta
1 months ago
So, we just need to configure the log-driver and log-opt keys in the daemon.json file.
upvoted 0 times
...
Ettie
1 months ago
Great, thanks for confirming!
upvoted 0 times
...
Sabrina
1 months 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
3 months ago
Yes, it will configure a Docker container to export logs to Splunk.
upvoted 0 times
...

Save Cancel