XK0-005 · Question #10540
XK0-005 Question #10540: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-005 to reveal the answer and full explanation for question #10540. The question stem and answer options stay visible for context.
Question
The security team has identified a web service that is running with elevated privileges. A Linux administrator is working to change the systemd service file to meet security compliance standards. Given the following output: [Unit] Description=CompTIA server daemon Documentation=man:webserver(8) man:webserver_config(5) After=network.target [Service] Type=notify EnvironmentFile=/etc/webserver/config ExecStart=/usr/sbin/webserver -D $OPTIONS ExecReload=/bin/kill -HUP SMAINPID KillMode=process Restart=on-failure RestartSec=42s [Install] WantedBy=multi-user.target Which of the following remediation steps will prevent the web service from running as a privileged user?
Options
- ARemoving the ExecStart=/usr/sbin/webserver -D $OPTIONS from the service file
- BUpdating the EnvironmentFile line in the [Service] section to /home/webservice/config
- CAdding the User=webservice to the [Service] section of the service file
- DChanging the multi-user.target in the [Install] section to basic.target
Unlock XK0-005 to see the answer
You've previewed enough free XK0-005 questions. Unlock XK0-005 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.