nerdexam
CompTIA

SY0-501 · Question #69

An organization has hired a penetration tester to test the security of its ten web servers. The penetration tester is able to gain root/administrative access in several servers by exploiting…

The correct answer is B. Disable unnecessary services. The penetration tester discovered vulnerabilities in services like SMTP, POP, and FTP running on web servers, which are often unnecessary for a web server's primary function and expand its attack surface.

Submitted by chen.hong· Mar 4, 2026Security architecture

Question

An organization has hired a penetration tester to test the security of its ten web servers. The penetration tester is able to gain root/administrative access in several servers by exploiting vulnerabilities associated with the implementation of SMTP, POP, DNS, FTP, Telnet, and IMAP. Which of the following recommendations should the penetration tester provide to the organization to better protect their web servers in the future?

Options

  • AUse a honeypot
  • BDisable unnecessary services
  • CImplement transport layer security
  • DIncrease application event logging

How the community answered

(15 responses)
  • A
    20% (3)
  • B
    73% (11)
  • C
    7% (1)

Why each option

The penetration tester discovered vulnerabilities in services like SMTP, POP, and FTP running on web servers, which are often unnecessary for a web server's primary function and expand its attack surface.

AUse a honeypot

A honeypot is designed to detect and learn about attacks by luring them, not to prevent the successful exploitation of unnecessary services running on production web servers.

BDisable unnecessary servicesCorrect

The exploited services (SMTP, POP, DNS, FTP, Telnet, IMAP) are typically not essential for a web server's core function, and disabling them directly reduces the attack surface by eliminating entry points for known vulnerabilities.

CImplement transport layer security

Implementing transport layer security (TLS) encrypts communications and provides authentication but does not inherently fix vulnerabilities within the services themselves or address the risk of running unnecessary services like Telnet.

DIncrease application event logging

Increasing application event logging enhances detection and forensics capabilities but does not prevent the initial exploitation of vulnerabilities found in unnecessary services.

Concept tested: Server hardening by reducing attack surface

Source: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/security-best-practices/securing-ad-ds-installation#reduce-the-attack-surface

Topics

#attack surface reduction#unnecessary services#server hardening#web server security

Community Discussion

No community discussion yet for this question.

Full SY0-501 Practice