Skip to main content

SY0-801 practice question · Security Operations

A newly built server will host a single web application. Before it goes into production, the security team wants to take…

A newly built server will host a single web application. Before it goes into production, the security team wants to take the step that most directly reduces the server's attack surface. Which action should they take?

  • AUninstall unneeded roles and packages, disable unused services and ports, and remove or disable built-in default accounts
  • BEnable verbose security event logging on the server and forward all of its logs to the central SIEM for correlation
  • CInstall a host-based intrusion detection agent and file integrity monitoring so that changes to system files raise alerts
  • DCapture a golden image snapshot of the server and store it offline so the system can be quickly rebuilt after an incident
Show the answer and explanation

Correct answer: A) Uninstall unneeded roles and packages, disable unused services and ports, and remove or disable built-in default accounts

Attack surface reduction means removing what isn't needed: unused roles, packages, services, ports and default accounts. Logging, monitoring and backups are valuable, but they detect or recover rather than shrink exposure.

Why each option is right or wrong

  • A) Correct. Attack surface is the set of components and entry points an attacker could target. Removing software, services, open ports and default accounts the server doesn't need shrinks that set directly. This is the core of system hardening.
  • B) Incorrect. Centralized logging improves detection and investigation, but every service and port that was exposed is still exposed. It is a detective control, not a way to reduce the attack surface.
  • C) Incorrect. HIDS and FIM help detect compromise, but they add software to the host and don't remove any existing entry points. The attack surface stays the same or grows slightly.
  • D) Incorrect. A known-good image supports recovery and resilience, but it doesn't change what is exposed on the running server. If the image isn't hardened, it just preserves the same attack surface.
Exam domain
Security Operations · 27% of SY0-801
Question type
Multiple choice (one answer)

Practise the full SY0-801 exam

This question is one of a small free sample from the CertRidge SY0-801 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with CompTIA; never copied from the real exam.

Worth reading: Security+ passing score (750/900), 750 on a 100–900 scale for SY0-701, SY0-801 and the retired SY0-601, and why it isn't 83%.