ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 312 - XK0-005 discussion

Report
Export

A security team discovers that a web server has been running with elevated privileges and identifies it as a security violation. Which of the following items needs to be added to the webserver.service file to remediate the issue?

A.

In the [Service] section of the webserver.service file, add User=comptia.

Answers
A.

In the [Service] section of the webserver.service file, add User=comptia.

B.

In the [Unit] section of the webserver.service file, add AllowIsolate=true.

Answers
B.

In the [Unit] section of the webserver.service file, add AllowIsolate=true.

C.

In the [Install] section of the webserver.service file, add WantedBy=single.target.

Answers
C.

In the [Install] section of the webserver.service file, add WantedBy=single.target.

D.

Add After=network.target to the [Install] section of the webserver.service file.

Answers
D.

Add After=network.target to the [Install] section of the webserver.service file.

Suggested answer: A

Explanation:

Adding User=comptia in the [Service] section ensures that the web server runs as a non-root user, which enhances security by reducing the risk of elevated privileges being exploited. This follows the principle of least privilege, a best practice for system services.

asked 09/10/2024
brandon landaal
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first