exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 141 discussion

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

A Linux systems administrator receives reports from various users that an application hosted on a server has stopped responding at similar times for several days in a row. The administrator logs in to the system and obtains the following output:
Output 1:

Output 2:

Output 3:

Which of the following should the administrator do to provide the BEST solution for the reported issue?

  • A. Configure memory allocation policies during business hours and prevent the Java process from going into a zombie state while the server is idle.
  • B. Configure a different nice value for the Java process to allow for more users and prevent the Java process from restarting during business hours.
  • C. Configure more CPU cores to allow for the server to allocate more processing and prevent the Java process from consuming all of the available resources.
  • D. Configure the swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory.
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
MissAllen
Highly Voted 2 years, 8 months ago
I choose answer D. The system killed the java process because of lack of memory, but no one has configured a swap partition! That will help. A swap partition is generally recommended as one of the two main partitions created during a linux installation.
upvoted 11 times
Veteran903
2 years, 8 months ago
Im with you, its D
upvoted 3 times
...
...
IFBBPROSALCEDO
Most Recent 1 year ago
Selected Answer: C
C. Configure more CPU cores to allow for the server to allocate more processing and prevent the Java process from consuming all of the available resources. Adding more CPU cores can help distribute the load and handle higher CPU demands, potentially resolving the issue of high CPU usage by the Java process. Adding more CPU cores can help distribute the load and handle higher CPU demands, potentially resolving the issue of high CPU usage by the Java process.
upvoted 1 times
...
DRVision
1 year, 7 months ago
Selected Answer: D
Given this, the best solution would be to configure the swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory. This can be done by increasing the size of the swap space or adding more swap space. This will provide a buffer for the system when it runs out of physical memory, preventing the OOM killer from being invoked and the Java process from being killed. So, the correct answer is D. Configure the swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory.
upvoted 3 times
...
BreakOff874
2 years, 4 months ago
Selected Answer: D
the last output shows that there is no swap available
upvoted 1 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 ...