Discover the best answers at Westonci.ca, where experts share their insights and knowledge with you. Explore thousands of questions and answers from a knowledgeable community of experts on our user-friendly platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

A web administrator is responsible for the security of a web application. The administrator wants to prevent cross-site scripting (XSS) attacks where user input is reflected back and executed as part of the web page content. Which of the following best practices should the administrator use to achieve this goal?

A. Input validation
B. Output encoding
C. Parameterized queries
D. Strong password policies