Courseiva
Essential Tools →easyMultiple Choice

EX200 Essential Tools Practice Question

An administrator wants to gracefully terminate a process with PID 12345. Which command should be used?

⚠ Common exam trap

Red Hat often tests the distinction between signals that allow graceful termination (SIGTERM) versus those that force immediate termination (SIGKILL), and candidates frequently confuse `kill -9` as the 'standard' way to stop a process, missing the 'graceful' requirement in the question.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

kill -TERM 12345

`kill -TERM` (or `kill -15`) sends the SIGTERM signal, which requests a process to terminate gracefully. This allows the process to perform cleanup tasks (e.g., closing files, releasing resources) before exiting, making it the standard way to stop a process politely.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    kill -STOP 12345

    Why it's wrong here

    The -STOP option sends SIGSTOP, a signal that suspends process execution but does not terminate it. SIGSTOP cannot be caught or ignored, so the process is paused immediately, remaining in the process table as a stopped job (state T). To resume it later, you would need to issue a SIGCONT signal; thus this command does not achieve termination, graceful or otherwise.

  • ✗

    kill -9 12345

    Why it's wrong here

    Sending -9 dispatches SIGKILL, which forces the kernel to destroy the process with no opportunity for the process to intercept the signal or execute cleanup logic. File buffers are not flushed, temporary files are not removed, and related child processes may become orphaned. This is an abrupt, non-graceful kill that should only be used when the process is unresponsive to SIGTERM.

  • ✗

    kill -KILL 12345

    Why it's wrong here

    The -KILL argument is a mnemonic alias for SIGKILL, equivalent to -9: it delivers an unroutable, unforgeable termination signal that cannot be caught or handled. The process is immediately terminated by the kernel, which means any open file descriptors are closed without syncing data and application-level state is lost. Because the goal is graceful termination, this signal is exactly the opposite, violating the intent of clean shutdown.

  • ✓

    kill -TERM 12345

    Why this is correct

    Using -TERM sends SIGTERM, the default signal from kill, which politely asks the process to exit. Because SIGTERM can be caught and handled, a well-behaved process can flush buffers, close files, release resources, and perform other cleanup before its standard action (termination) completes. That makes it the canonical signal for graceful termination in an administrative context.

About these practice questions

Courseiva writes every EX200 question from scratch — 427 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This EX200 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX200 exam.