CompTIA Linux+ (XK0-004) — Question 60

A configuration management tool running every minute is enforcing the service HTTPd to be started. To perform maintenance, which of the following series of commands can be used to prevent the service from being started?

Answer options

Correct answer: A

Explanation

The correct answer is A because 'systemctl stop httpd' halts the service, and 'systemctl mask httpd' prevents it from being started again. Option B does not stop the service immediately, while options C and D use 'hide', which is not a valid command for controlling service states.