Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam XK0-005 Topic 8 Question 24 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 24
Topic #: 8
[All XK0-005 Questions]

An administrator is provisioning an Apache web server. When the administrator visits the server website, the browser displays a message indicating the website cannot be reached. Which of the following commands should the administrator use to verify whether the service Is running?

Show Suggested Answer Hide Answer
Suggested Answer: A

systemctl status httpd is the correct option to check if the Apache web server (httpd) is running. The systemctl status command provides detailed information about the service, including whether it is active and running.


Contribute your Thoughts:

Dean
4 months ago
I would go with A as well, since it's about checking the status.
upvoted 0 times
...
Ramonita
4 months ago
I agree, it's important to verify if the service is running.
upvoted 0 times
...
Aimee
4 months ago
That makes sense, it checks the status of the Apache service.
upvoted 0 times
...
Oliva
4 months ago
I think the answer is A) systemctl status httpd.
upvoted 0 times
...
Toshia
4 months ago
I know, they can be difficult.
upvoted 0 times
...
Remona
5 months ago
I hate questions about servers.
upvoted 0 times
...
Shaun
5 months ago
But restarting the service won't necessarily tell us if it's currently running. We need to check the status first with systemctl status httpd.
upvoted 0 times
...
Micheal
5 months ago
I'm not sure about that. I think the answer might be D) systemctl restart httpd to try and restart the service.
upvoted 0 times
...
Desiree
5 months ago
I agree with Shaun. A) systemctl status httpd is the right command to check if the service is running.
upvoted 0 times
...
Shaun
6 months ago
I think the answer is A) systemctl status httpd. It will show the status of the Apache service.
upvoted 0 times
...
Graciela
7 months ago
Haha, can you imagine if the answer was B? Like, 'Hmm, the website isn't working. I know, let me just mask the httpd service, that'll fix it!'
upvoted 0 times
Clarinda
6 months ago
Haha, can you imagine if the answer was B? Like, 'Hmm, the website isn't working. I know, let me just mask the httpd service, that'll fix it!'
upvoted 0 times
...
Shelia
6 months ago
D) systemctl restart httpd
upvoted 0 times
...
Lorriane
6 months ago
C) systemctl reload httpd
upvoted 0 times
...
Sang
6 months ago
B) systemctl mask httpd
upvoted 0 times
...
Oren
6 months ago
A) systemctl status httpd
upvoted 0 times
...
...
Carman
7 months ago
Absolutely. Masking the service (option B) would actually disable it, which is the opposite of what we want to do here. Good thing they didn't include that as the correct answer.
upvoted 0 times
...
My
7 months ago
Yeah, I agree. That seems like the logical choice. You need to check the status of the service, not reload, restart, or mask it.
upvoted 0 times
...
Kallie
7 months ago
This is a pretty straightforward question, but it's important to know the right command to verify if a service is running. I'm pretty sure the answer is A) systemctl status httpd.
upvoted 0 times
...

Save Cancel