nerdexam
CompTIACompTIA

XK0-005 · Question #1674

XK0-005 Question #1674: Real Exam Question with Answer & Explanation

The correct answer is A: systemctl status httpd. {"question_number": 10, "correct_answer": "A", "explanation": "systemctl status httpd reports the current runtime state of the Apache HTTP Server service, including whether it is active (running), inactive (stopped), or failed, along with recent log entries. This is the correct d

Troubleshooting

Question

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?

Options

  • Asystemctl status httpd
  • Bsystemctl mask httpd
  • Csystemctl reload httpd
  • Dsystemctl restart httpd

Explanation

{"question_number": 10, "correct_answer": "A", "explanation": "systemctl status httpd reports the current runtime state of the Apache HTTP Server service, including whether it is active (running), inactive (stopped), or failed, along with recent log entries. This is the correct diagnostic command when a website is unreachable. systemctl mask httpd permanently disables the service - a destructive action, not a diagnostic one. systemctl reload httpd reloads the configuration of a running service. systemctl restart httpd stops and restarts the service. Neither reload nor restart verifies current status; they change it.", "generated_by": "claude-sonnet", "llm_judge_score": 5}

Topics

#systemctl#service management#Apache#troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions