CV0-003 · Question #435
With increased traffic to a website, several outages have occurred due to a log files filling the root drive of the web servers. An administrator is considering several possible solutions to prevent f
The correct answer is B. Clearing logs.. Clearing active logs on a running web server forces the operating system to perform disruptive disk I/O - locking, truncating, or deleting files that logging processes are actively writing to - causing the greatest immediate performance impact among the listed options.
Question
With increased traffic to a website, several outages have occurred due to a log files filling the root drive of the web servers. An administrator is considering several possible solutions to prevent future outages. Which of the following techniques is MOST likely to impact server performance if implemented?
Options
- AArchiving logs.
- BClearing logs.
- CLog redirection.
- DDrive compression.
How the community answered
(48 responses)- A8% (4)
- B75% (36)
- C4% (2)
- D13% (6)
Why each option
Clearing active logs on a running web server forces the operating system to perform disruptive disk I/O - locking, truncating, or deleting files that logging processes are actively writing to - causing the greatest immediate performance impact among the listed options.
Archiving logs moves older log data to a separate location or storage tier and can be scheduled during off-peak hours, introducing only minimal and controllable I/O overhead.
When logs are cleared on a live server, the OS must acquire file locks on log files that web server processes are actively writing to, creating I/O contention and potential blocking of logging threads. This lock contention and the repeated spike in disk activity each time logs are cleared makes it the most disruptive option to ongoing server performance compared to the alternatives.
Log redirection simply changes the target path or destination for log output with negligible configuration overhead and no ongoing performance penalty.
Drive compression adds CPU and I/O overhead to file operations, but modern operating systems optimize compression transparently, making the per-operation impact manageable on contemporary hardware.
Concept tested: Log management techniques and server performance trade-offs
Topics
Community Discussion
No community discussion yet for this question.