XK0-004 · Question #486
A developer has contacted a systems administrator because an application is not receiving a response from the client. The application must purge the message queue before terminating. Which of the foll
The correct answer is C. Send the SIGSTOP signal with the kill command.. This question tests knowledge of POSIX process signals, specifically which signal suspends a process to prevent premature termination while queue cleanup is arranged.
Question
A developer has contacted a systems administrator because an application is not receiving a response from the client. The application must purge the message queue before terminating. Which of the following should the systems administrator perform in order to BEST address the issue?
Options
- ASend the SIGHUP signal with the kill command.
- BSend the signal with the command.
- CSend the SIGSTOP signal with the kill command.
- DSend the SIGTERN signal with the kill command.
How the community answered
(55 responses)- A4% (2)
- B15% (8)
- C75% (41)
- D7% (4)
Why each option
This question tests knowledge of POSIX process signals, specifically which signal suspends a process to prevent premature termination while queue cleanup is arranged.
SIGHUP (signal 1) instructs a process to reload its configuration or re-open log files and does not pause execution or provide any mechanism for controlled queue draining.
Option B does not specify a valid named signal or complete kill command syntax, making it a non-functional choice for managing the process state.
SIGSTOP (signal 19) unconditionally suspends the target process and cannot be caught, blocked, or ignored by the application, freezing it in place so it does not exit before the message queue is drained through an external or administrative action. This gives the administrator controlled time to handle queue cleanup before resuming or terminating the process with SIGCONT and a termination signal.
SIGTERN appears to be a typo for SIGTERM (signal 15), which requests graceful termination but can be caught and ignored by an unresponsive application, meaning the queue purge is not guaranteed.
Concept tested: POSIX signal SIGSTOP for suspending a running process
Source: https://man7.org/linux/man-pages/man7/signal.7.html
Topics
Community Discussion
No community discussion yet for this question.