exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 41 discussion

Actual exam question from CompTIA's XK0-005
Question #: 41
Topic #: 1
[All XK0-005 Questions]

A Linux administrator is troubleshooting the root cause of a high CPU load and average.

Which of the following commands will permanently resolve the issue?

  • A. renice -n -20 6295
  • B. pstree -p 6295
  • C. iostat -cy 1 5
  • D. kill -9 6295
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
Highly Voted 1 year, 9 months ago
Selected Answer: D
D. kill -9 6295 The command "renice -n -20 6295" changes the priority of the process with ID 6295 to a higher priority by assigning it a nice value of -20.
upvoted 7 times
...
bc1235813
Most Recent 8 months ago
I agree "A" gives the process a higher priority therefore allowing it to consume even more system resources. Apparently the test developers don't listen to our comments or QC them. Just think a lot more experienced unix'ers would ace these tests if the answers were correct.
upvoted 3 times
...
mrtwister76
1 year, 5 months ago
Definitely not A. It's D.
upvoted 1 times
...
HMAC
1 year, 6 months ago
it's A the question said permanently killing the process solves the immediate problem but after a reboot the process will start again
upvoted 1 times
tutita
1 year, 5 months ago
when you renice to -20 you are actually giving higher priority to the process, the more -higher the number the more priority
upvoted 2 times
...
...
Nvoid
1 year, 11 months ago
Selected Answer: D
I picked D here. Won't the users script will still consume those resources no matter what priority you set? even if the renice command was correct?
upvoted 1 times
...
MissAllen
2 years ago
Actually, I am going with D. The renice command, when using a negative number (max of -20), actually calls for the process to get more cpu cycles and therefore put more demand on the CPU. For A to be correct, the renice command would need to use a positive number which will slow it down. Note that the output of the top command is wrong also. When you have a nice value of -10, then the priority value would be positive 10 (ten subtracted from the default of 20).
upvoted 2 times
...
TheRealManish
2 years ago
terrible wording, where as the renice would make the process use less CPU.. the kill -9 would also "permanently resolve the issue"
upvoted 1 times
Veteran903
1 year, 12 months ago
Comptia wording is brutal, sometime I wonder if they are really testing our knowledge or just trolling thre hell out of everyone.....lol, maybe both
upvoted 5 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago