nerdexam
EC-Council

312-50V12 · Question #214

You have been given the responsibility to ensure the security of your school's web server. As a step towards this, you plan to restrict unnecessary services running on the server. In the context of…

The correct answer is B. Unnecessary services could contain vulnerabilities; minimize the attack surface. Disabling unnecessary services on a web server is a fundamental security hardening practice that reduces the number of potential entry points an attacker can exploit.

Submitted by chiamaka_o· Mar 4, 2026Web Application Hacking

Question

You have been given the responsibility to ensure the security of your school's web server. As a step towards this, you plan to restrict unnecessary services running on the server. In the context of web server security, why is this step considered important?

Options

  • AUnnecessary services eat up server memory; save memory resources.
  • BUnnecessary services could contain vulnerabilities; minimize the attack surface.
  • CUnnecessary services reveal server software; hide software details.
  • DUnnecessary services slow down the server; optimize server speed.

How the community answered

(31 responses)
  • A
    6% (2)
  • B
    90% (28)
  • D
    3% (1)

Why each option

Disabling unnecessary services on a web server is a fundamental security hardening practice that reduces the number of potential entry points an attacker can exploit.

AUnnecessary services eat up server memory; save memory resources.

While unnecessary services do consume memory, conserving memory resources is a performance concern, not a security rationale, making this an incorrect justification in the context of web server security.

BUnnecessary services could contain vulnerabilities; minimize the attack surface.Correct

Every running service represents a potential attack vector; if a service contains an unpatched vulnerability, it can be exploited by an attacker even if that service is not needed for the server's primary function. By disabling unnecessary services, administrators reduce the 'attack surface' - the total number of exploitable entry points - which is a core principle of defense-in-depth and server hardening. This minimizes risk by ensuring that only services essential to operations are exposed.

CUnnecessary services reveal server software; hide software details.

Hiding software details relates to security through obscurity, which is a weak and secondary security measure; the primary concern with unnecessary services is the vulnerabilities they introduce, not the information they reveal.

DUnnecessary services slow down the server; optimize server speed.

Optimizing server speed is a performance and operational concern, not a security objective, and therefore does not correctly explain why restricting unnecessary services is a security best practice.

Concept tested: Web server hardening by minimizing attack surface

Source: https://learn.microsoft.com/en-us/windows-server/security/windows-server-security

Topics

#web server hardening#attack surface reduction#service management#security best practices

Community Discussion

No community discussion yet for this question.

Full 312-50V12 Practice