305-300 Container Virtualization Practice Question
In a Docker environment, you are observing that container logs are consuming too much disk space. Which logging driver should you configure to limit the number and size of log files?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
json-file
The 'json-file' logging driver supports 'max-size' and 'max-file' options to rotate and cap logs.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
none
Why it's wrong here
This prevents logging entirely, losing all data.
- ✓
json-file
Why this is correct
This driver allows log rotation using max-size and max-file.
- ✗
syslog
Why it's wrong here
This relies on external syslog infrastructure.
- ✗
journald
Why it's wrong here
While it logs to the journal, it is not the standard way to limit file size.
About these practice questions
One of 194 original 305-300 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official LPI exam blueprint
This 305-300 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 305-300 exam.