Cyber Monday 2024! 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
5 months ago
I would go with A as well, since it's about checking the status.
upvoted 0 times
...
Ramonita
5 months ago
I agree, it's important to verify if the service is running.
upvoted 0 times
...
Aimee
5 months ago
That makes sense, it checks the status of the Apache service.
upvoted 0 times
...
Oliva
6 months ago
I think the answer is A) systemctl status httpd.
upvoted 0 times
...
Toshia
6 months ago
I know, they can be difficult.
upvoted 0 times
...
Remona
6 months ago
I hate questions about servers.
upvoted 0 times
...
Shaun
6 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
6 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
6 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
7 months ago
I think the answer is A) systemctl status httpd. It will show the status of the Apache service.
upvoted 0 times
...
Graciela
8 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
8 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
8 months ago
D) systemctl restart httpd
upvoted 0 times
...
Lorriane
8 months ago
C) systemctl reload httpd
upvoted 0 times
...
Sang
8 months ago
B) systemctl mask httpd
upvoted 0 times
...
Oren
8 months ago
A) systemctl status httpd
upvoted 0 times
...
...
Carman
8 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
8 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
8 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77