nerdexam
CompTIA

SY0-701 · Question #716

An attacker used XSS to compromise a web server. Which of the following solutions could have been used to prevent this attack?

The correct answer is C. WAF. A Web Application Firewall (WAF) is designed to protect web applications from attacks such as Cross-Site Scripting (XSS) by filtering and monitoring HTTP traffic between the internet and a web application.

Submitted by lucia.co· Mar 6, 2026Threats, vulnerabilities, and mitigations

Question

An attacker used XSS to compromise a web server. Which of the following solutions could have been used to prevent this attack?

Options

  • ANGFW
  • BUTM
  • CWAF
  • DNAC

How the community answered

(48 responses)
  • A
    4% (2)
  • B
    8% (4)
  • C
    71% (34)
  • D
    17% (8)

Explanation

A Web Application Firewall (WAF) is designed to protect web applications from attacks such as Cross-Site Scripting (XSS) by filtering and monitoring HTTP traffic between the internet and a web application.

Community Discussion

No community discussion yet for this question.

Full SY0-701 Practice