nerdexam
CompTIACompTIA

XK0-005 · Question #10820

XK0-005 Question #10820: Real Exam Question with Answer & Explanation

The correct answer is A: sudo killall -HUP httpd. To gracefully reload an Apache web server's configuration when sudo access is restricted to killall, the HUP signal is used.

System Management

Question

After making a configuration change to an Apache web server, an administrator needs to reload the service. However, sudo access was only granted to the command. killall Which of the following commands should the administrator use to load the new configuration?

Options

  • Asudo killall -HUP httpd
  • Bsudo killall -reload httpd
  • Csudo killall -9 httpd
  • Dsudo killall -TERM httpd

Explanation

To gracefully reload an Apache web server's configuration when sudo access is restricted to killall, the HUP signal is used.

Common mistakes.

  • B. The -reload option is not a standard signal name or recognized option for the killall command.
  • C. Sending signal 9 (KILL) forces an immediate, ungraceful termination of the process, which can lead to data loss or service disruption, and does not allow for a configuration reload.
  • D. Sending signal 15 (TERM) requests a graceful shutdown of the process, which usually causes the service to exit rather than just reloading its configuration.

Concept tested. Process signaling (killall -HUP)

Reference. https://linux.die.net/man/1/killall

Topics

#Linux Signals#Service Management#Apache Configuration#killall

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions