exam questions

Exam SK0-005 All Questions

View all questions & answers for the SK0-005 exam

Exam SK0-005 topic 1 question 269 discussion

Actual exam question from CompTIA's SK0-005
Question #: 269
Topic #: 1
[All SK0-005 Questions]

A server administrator notices the /var/log/audit/audit.log file on a Linux server is rotating too frequently. The administrator would like to decrease the number of times the log rotates without losing any of the information in the logs. Which of the following should the administrator configure?

  • A. Increase the audit.log file size in the appropriate configuration file.
  • B. Decrease the duration of the log rotate cycle for the audit.log file.
  • C. Remove the log rotate directive from the audit.log file configuration.
  • D. Move the audit.log files to a remote syslog server.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
SecNoob27639
6 months, 1 week ago
Selected Answer: A
B is the exact OPPOSITE of what is being requested. By decreasing the duration of the rotate cycle, you will end up creating more logs. C would just stop creating additional logs, defeating the purpose of log rotation. D doesn't change the fact that logs are being created too frequently, it just puts them somewhere else. So the only viable answer is A - increase the audit.log file size in the appropriate configuration file.
upvoted 3 times
...
tame_rabbit
11 months, 1 week ago
Selected Answer: A
Increasing the file size limit for the audit.log file would delay log rotation until the file reaches the specified size. This can be a valid solution if the issue is that the file is rotating too frequently due to reaching its size limit quickly.
upvoted 2 times
...
surfuganda
1 year ago
Selected Answer: B
B. To decrease the frequency of log rotation for the /var/log/audit/audit.log file without losing any information in the logs, the server administrator should decrease the duration of the log rotate cycle. This can be achieved by adjusting the logrotate configuration for the audit log files to specify a longer time interval or a larger file size threshold before rotation occurs.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago