Courseiva
easyMultiple Choice

XK0-006 A user cannot start the Apache web service Practice Question

A user cannot start the Apache web service. The command 'systemctl start httpd' returns 'Failed to start httpd.service: Unit not found.' What is the most likely cause?

⚠ Common exam trap

It's easy for candidates to confuse a missing package with a service that is installed but not enabled or has configuration issues, leading them to select options like incorrect permissions or network configuration instead of recognizing the fundamental absence of the service unit.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The httpd package is not installed

The error 'Failed to start httpd.service: Unit not found' indicates that systemd cannot locate a service unit file for httpd. This most commonly occurs when the httpd package (Apache HTTP Server) is not installed on the system. Without the package, no service unit file exists under /usr/lib/systemd/system/, so systemctl cannot start the service.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Network configuration is incorrect

    Why it's wrong here

    'Unit not found' means systemd has no httpd.service unit file loaded, so IP addressing, routing and DNS play no part in locating a unit. Network configuration matters when a service starts but cannot reach remote hosts or bind a required address.

  • ✗

    Incorrect file permissions on /etc/httpd/

    Why it's wrong here

    'Unit not found' means systemd has no httpd unit loaded, so the package is absent or the unit file is missing; permissions on /etc/httpd/ would instead cause a start failure, not an unknown unit. It is tempting because misconfigured directories do break httpd, and would be correct if the unit existed but failed to launch.

  • ✓

    The httpd package is not installed

    Why this is correct

    systemd reports 'Unit not found' when no unit file named httpd.service exists in its search paths, which happens when the httpd package was never installed. A stopped or masked service would still be found and produce a different error.

  • ✗

    Disk space is full

    Why it's wrong here

    A full disk produces write errors or a failed unit start, not 'Unit not found'; systemd cannot even locate the unit file, so storage capacity is irrelevant here. Disk space checks belong to troubleshooting services that exist but crash, such as a database refusing writes.

About these practice questions

One of 781 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.