ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 268 - XK0-005 discussion

Report
Export

A systems administrator notices the process list on a mission-critical server has a large number of processes that are in state 'Z' and marked as 'defunct.' Which of the following should the administrator do in an attempt to safely remove these entries from the process list?

A.
Kill the process with PID 1.
Answers
A.
Kill the process with PID 1.
B.
Kill the PID of the processes.
Answers
B.
Kill the PID of the processes.
C.
Kill the parent PID of the processes.
Answers
C.
Kill the parent PID of the processes.
D.
Reboot the server.
Answers
D.
Reboot the server.
Suggested answer: C

Explanation:

As the web search results show, processes in state Z are defunct or zombie processes, which means they have terminated but their parent process has not reaped them properly. They do not consume any resources, but they occupy a slot in the process table. To remove them from the process list, the administrator needs to kill the parent process of the zombies, which will cause them to be reaped by the init process (PID 1). Killing the zombies themselves or the init process will not have any effect, as they are already dead. Rebooting the server may work, but it is not a safe or efficient option, as it may cause unnecessary downtime or data loss for a mission-critical server.

Reference

Processes in a Zombie (Z) or Defunct State | Support | SUSE, paragraph 3

linux - Zombie vs Defunct processes? - Stack Overflow, answer by admirableadmin

How To Kill Zombie Processes on Linux | Linux Journal, paragraph 4

asked 02/10/2024
Vadym Popov
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first