exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 76 discussion

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

Users report that connections to a MariaDB service are being closed unexpectedly. A systems administrator troubleshoots the issue and finds the following message in /var/log/messages:

Which of the following is causing the connection issue?

  • A. The process mysqld is using too many semaphores.
  • B. The server is running out of file descriptors.
  • C. Something is starving the server resources.
  • D. The amount of RAM allocated to the server is too high.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Nvoid
Highly Voted 1 year, 11 months ago
Selected Answer: C
I'm picking C, this isn't a MySQL database test so knowing what a semaphores seems outside of the scope of linux+.
upvoted 6 times
...
Damon54
Most Recent 1 year, 2 months ago
Answer C could be a consequence or symptom of the out-of-memory problem, but it is not the direct cause. Therefore, answer D is much more likely to be the main explanation for the problem.
upvoted 2 times
...
Damon54
1 year, 2 months ago
Selected Answer: D
Why not D ? D. The amount of RAM allocated to the server is too high.
upvoted 1 times
comptiamac1
6 months, 3 weeks ago
Please read once again: "amount of RAM allocated to the server", not "used by the server". Key term: "ALLOCATED". It would never be a problem/issue. It's like saying, that you gave 20T drive to the server and this caused issue. More memory = better performance.
upvoted 4 times
...
...
linux_admin
1 year, 9 months ago
Selected Answer: C
C. Something is starving the server resources. The message "out of Memory: Killed process 1234 (mysqld)" indicates that the process mysqld was terminated by the Linux kernel due to a lack of available memory. This suggests that something is consuming all of the available memory on the server and preventing mysqld from functioning properly. This is an indication of resource starvation, which can cause various issues, including unexpected connection closures. Option A "The process mysqld is using too many semaphores" is not relevant to the issue described in the log message. Semaphores are used to synchronize processes, but they do not have an impact on memory usage.
upvoted 2 times
linux_admin
1 year, 9 months ago
Option A "The process mysqld is using too many semaphores" is not relevant to the issue described in the log message. Semaphores are a type of synchronization mechanism that are used to control access to shared resources in a multithreaded environment. They are implemented as a type of lock that can be acquired and released by multiple processes. While semaphores can be a source of performance issues and can cause problems in a system, they do not have a direct impact on memory usage. If a process is using too many semaphores, it may cause other issues such as deadlocks or performance degradation, but it will not cause the system to run out of memory. In this case, the log message indicates that the process mysqld was terminated by the Linux kernel due to a lack of available memory, not due to an issue with semaphores. The message specifically mentions "out of memory", which suggests that the root cause of the issue is related to memory, not semaphores.
upvoted 2 times
...
...
KnifeClown1
1 year, 9 months ago
Selected Answer: A
The message in /var/log/messages is indicating that the process mysqld is using too many semaphores, which is causing the connection issue. So the correct answer is A: The process mysqld is using too many semaphores. Semaphores are used to control access to shared resources in a system. When a process requires access to a shared resource, it acquires a semaphore. When the process has finished using the resource, it releases the semaphore. If a process requires too many semaphores, it can cause other processes to block, leading to performance issues. In this case, the mysqld process is using too many semaphores, causing connections to the MariaDB service to be closed unexpectedly. It's important to note that other factors such as memory, disk space, CPU usage, etc. should also be monitored to determine the root cause of the issue.
upvoted 1 times
KnifeClown1
1 year, 9 months ago
Correct answer C:
upvoted 1 times
...
...
TheRealManish
2 years ago
Selected Answer: C
Maybe I'm wrong, but semaphore is just a non-negative shared variable? This just seems like the kernel was starved for memory and killed the process.. C, something is starving the server resources.
upvoted 4 times
Veteran903
1 year, 11 months ago
I took a second look at this question, the log message clearly indicates with parenthesis the issue is within mysqld and just for that reason Im gonna change my answer to A, CompTIA is very tricky with the way they word their questions, C can be an answer but not in this particular question.
upvoted 1 times
TheRealManish
1 year, 11 months ago
Hey, thanks. Im having a real hard time finding anything in google resembling this answer. can you possibly elaborate? thanks so much.. unbelievable that something so hard to find on google is an intermediate level cert studies.
upvoted 1 times
...
...
Veteran903
2 years ago
I'm with you, answer is C
upvoted 2 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