Question 440
During a Linux operations review, the team observes: A log-analysis script counts warnings but ignores archived compressed rotations. Which statement BEST explains the behavior?
Explanation
Correct Answer
Searching only a current plain log omits earlier records. This mechanism fits the stated evidence. Validate it by checking that the report includes matching events from compressed archives.
Incorrect Answers
The alternative describes log rotation can replace inode paths while tail -f follows an old descriptor, which is relevant when a script watches application logs but misses events after log rotation. It does not explain this case because searching only a current plain log omits earlier records.
It would account for a host's service starts failing at midnight but log timestamps are in UTC, not the current evidence. For this incident, searching only a current plain log omits earlier records; the alternative mechanism leaves that distinction unexplained.
A kernel failure may stop user processes before they write application logs. That can explain why an engineer suspects a kernel panic but examines only application syslog records, whereas the current evidence supports archived .gz logs need suitable decompression-aware readers.





CompTIA Linux+ (XK0-006) Practice Tests