Courseiva
Security ArchitectureeasyMultiple ChoiceObjective-mapped

Why Disabling Unnecessary Services Is Critical for Server Hardening

After building a new file server, an administrator reviews the security baseline and notices that a remote desktop service is enabled even though no one uses it. What is the best hardening action?

Quick Answer

The best hardening action is to disable the unnecessary service because it directly reduces the attack surface of the server. An enabled but unused service, such as Remote Desktop Protocol (RDP) on TCP/3389, is a common vector for brute-force attacks and exploits like BlueKeep (CVE-2019-0708). By disabling unnecessary services, you eliminate these risks without affecting legitimate operations, which is the core principle of server hardening. On the Security+ SY0-701 exam, this concept tests your understanding of attack surface reduction and the principle of least functionality—a key domain in security baselines. A common trap is to think about patching or firewall rules instead, but if a service is never used, disabling it is simpler and more effective than leaving it exposed. Memory tip: “If it’s not needed, it’s a seed for a breach”—always disable unused services first.

⚠ Common exam trap

A common mix-up: candidates confuse 'security through obscurity' (e.g., renaming the server) with a proper hardening action, or they may assume that keeping a service enabled 'just in case' is acceptable, when the correct approach is to disable any unnecessary service to minimize the attack surface.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Disable the unnecessary service

The best hardening action is to disable the unnecessary remote desktop service because it reduces the attack surface. An enabled but unused service, such as Remote Desktop Protocol (RDP) on TCP/3389, is a common vector for brute-force attacks and exploits (e.g., BlueKeep, CVE-2019-0708). Disabling it eliminates this risk without affecting legitimate operations.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Keep the service enabled in case someone needs it later

    Why it's wrong here

    Leaving unused services on increases the attack surface without a clear business need.

  • Disable the unnecessary service

    Why this is correct

    Removing unused services reduces attack surface and aligns the server with the secure baseline.

  • Change the server name to make it harder to find

    Why it's wrong here

    Obscuring a name does not remove the service or its associated risk.

  • Increase disk space on the server

    Why it's wrong here

    More storage does not reduce exposure from an unnecessary network service.

About these practice questions

This SY0-701 question is part of Courseiva's 1,013-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

4 more ways this is tested on SY0-701

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. After a server rebuild, an administrator notices that Remote Desktop, SMBv1, and Print Spooler are still enabled on a Windows file server even though the server only stores department documents. The security team also wants to know if future changes drift away from the approved build. What should be implemented?

medium
  • A.Apply the approved secure baseline and enable configuration drift monitoring against it.
  • B.Keep the server as-is and rely on the antivirus console to stop misuse.
  • C.Move the server into a different VLAN and leave the operating system settings unchanged.
  • D.Schedule a monthly reboot to clear temporary settings and reduce attack surface.

Why A: Applying an approved secure baseline (e.g., via Group Policy or Security Compliance Toolkit) ensures that unnecessary services like Remote Desktop, SMBv1, and Print Spooler are explicitly disabled. Enabling configuration drift monitoring (e.g., using Azure Policy, DSC, or a SIEM) allows the security team to detect and alert on any unauthorized changes that deviate from the baseline, addressing both the immediate risk and the long-term compliance requirement.

Variation 2. After a server rebuild, a Windows administrator notices several unneeded services are still enabled, including Remote Registry and Print Spooler on a server that only hosts a database. What should the administrator do to reduce attack surface and keep the build consistent?

easy
  • A.Install additional endpoint monitoring agents to compensate for the extra services.
  • B.Apply the approved secure baseline and disable unnecessary services.
  • C.Increase the disk encryption key size to protect the running services.
  • D.Move the server to a different subnet and leave the configuration unchanged.

Why B: Applying an approved secure baseline and disabling unnecessary services (Option B) directly reduces the attack surface by removing potential entry points like Remote Registry (which allows remote modification of the registry) and Print Spooler (which has known privilege escalation vulnerabilities, e.g., CVE-2021-34527). This also ensures build consistency by enforcing a standardized configuration across all servers, which is critical for compliance and manageability in a Windows environment.

Variation 3. A system administrator is creating a secure baseline for a new Linux application server. Which two actions are appropriate hardening steps? Select two.

easy
  • A.Disable services that the server does not need to perform its job.
  • B.Close unused listening ports with the host firewall or service configuration.
  • C.Install extra administrative tools on the server for convenience.
  • D.Enable passwordless remote shell access for faster troubleshooting.
  • E.Leave sample accounts and default demo content in place for testing.

Why A: Disabling unnecessary services and closing unused ports reduce the attack surface by removing potential entry points for exploitation. In a Linux server baseline, services like Telnet, FTP, or unused web servers should be disabled using systemctl or by removing the associated packages, and unused listening ports should be closed via firewall rules or service configuration. This aligns with the principle of least functionality, ensuring only required processes run.

Variation 4. After a server rebuild, a Linux database host still has several unnecessary services enabled, including a graphical desktop, Telnet, and a printer service. The operations team wants a secure baseline that prevents the same drift from happening again after future maintenance. Which two actions best address the issue? Select two.

hard
  • A.Remove the unused packages and disable the unnecessary services and ports.
  • B.Document the approved build and enforce it with configuration management or drift detection.
  • C.Allow administrators to enable any service they need without approval during maintenance windows.
  • D.Keep the default installation profile so vendor updates are easier to apply.
  • E.Open the firewall broadly and rely only on strong passwords.

Why A: Removing unused packages and disabling unnecessary services directly reduces the attack surface by eliminating potential entry points like Telnet (which transmits credentials in cleartext) and unused printer services. This aligns with the principle of least functionality, ensuring only required services run on the Linux database host. However, a one-time cleanup is not enough to prevent future drift. Documenting the approved build and enforcing it with configuration management or drift detection ensures that the secure baseline is maintained after future maintenance, so the host does not regress to having unnecessary services enabled again.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SY0-701 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SY0-701 exam.