Bird
0
0

Why might the journald logging driver be preferred over json-file in a system using systemd?

hard📝 Conceptual Q10 of 15
Docker - Logging and Monitoring
Why might the journald logging driver be preferred over json-file in a system using systemd?
Ajournald integrates directly with systemd journal, centralizing logs
Bjournald stores logs as JSON files on disk for easy access
Cjson-file driver disables logging by default on systemd systems
Djson-file driver cannot be used with systemd-based Linux
Step-by-Step Solution
Solution:
  1. Step 1: Understand journald's role with systemd

    journald is the logging system used by systemd, centralizing logs in one place.
  2. Step 2: Compare with json-file driver

    json-file stores logs separately as files, while journald integrates logs into systemd journal.
  3. Final Answer:

    journald integrates directly with systemd journal, centralizing logs -> Option A
  4. Quick Check:

    journald centralizes logs with systemd journal [OK]
Quick Trick: journald centralizes logs with systemd journal, unlike json-file [OK]
Common Mistakes:
  • Thinking journald stores JSON files
  • Assuming json-file disables logging
  • Believing json-file incompatible with systemd

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes