A security engineer is designing a defense-in-depth strategy for a new web application. The engineer wants to implement controls that map to the principle of least privilege and reduce the attack surface. Which two of the following controls best align with these goals? (Choose two.)
Disabling unnecessary services and closing unused ports reduces the attack surface by eliminating potential entry points for attackers. This aligns with least privilege by ensuring only required services are running, minimizing the exposure of the system. It is a fundamental hardening practice that complements other access controls, making it harder for an attacker to find and exploit vulnerabilities.
Why this answer
The two controls that best align with least privilege and reducing attack surface are implementing RBAC and disabling unnecessary services/ports. RBAC ensures users have only the permissions needed for their roles, while disabling unused services removes potential entry points. The other options are security controls but do not directly address authorization limits or attack surface reduction in the same way.
Exam trap
The trap here is selecting controls that improve security generally (like WAF or encryption) but do not specifically enforce least privilege or reduce the attack surface of the application.