nerdexam
CompTIA

LX0-104 · Question #312

The log level parameter in smb.conf should normally not be set higher than 2 because:

The correct answer is D. The server flushes the log file after each operation, which affects overall performance.. Setting the Samba log level parameter too high (above 2) can significantly degrade server performance because the server might perform frequent disk flushes for logging purposes.

Essential System Services

Question

The log level parameter in smb.conf should normally not be set higher than 2 because:

Options

  • ACredentials supplied by the user are logged, which poses a security risk.
  • BThe increased verbosity has a negative impact on network bandwidth.
  • CMost Samba administrators cannot understand the information presented at higher log levels.
  • DThe server flushes the log file after each operation, which affects overall performance.

How the community answered

(28 responses)
  • A
    11% (3)
  • B
    7% (2)
  • C
    4% (1)
  • D
    79% (22)

Why each option

Setting the Samba `log level` parameter too high (above 2) can significantly degrade server performance because the server might perform frequent disk flushes for logging purposes.

ACredentials supplied by the user are logged, which poses a security risk.

While high log levels can reveal more information about operations, `smb.conf` log levels generally do not directly log raw user credentials; security concerns are typically managed through authentication mechanisms.

BThe increased verbosity has a negative impact on network bandwidth.

Increased verbosity primarily impacts server disk I/O and CPU usage for processing and writing logs, not network bandwidth.

CMost Samba administrators cannot understand the information presented at higher log levels.

While higher log levels produce detailed output that might be harder to parse, the primary reason against high log levels for normal operation is performance, not administrator comprehension.

DThe server flushes the log file after each operation, which affects overall performance.Correct

When the `log level` in `smb.conf` is set to a high value (e.g., above 2), Samba generates a very large amount of verbose debugging information. This increased logging can cause the server to perform frequent disk write operations and potentially flush log files after each operation, leading to a substantial performance overhead and negatively impacting the server's overall responsiveness and resource utilization.

Concept tested: Samba `smb.conf` log level impact

Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html

Topics

#Samba logging#log level#performance impact#smb.conf

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice