Medium1 markMultiple Choice
Area II: SecurityApplication SecurityThreats

CPA · Question 72 · Area II: Security

A company uses 'Input Validation' on its web forms. Which attack does this primarily prevent?

Answer options:

A.

Phishing

B.

SQL Injection (SQLi) and Cross-Site Scripting (XSS)

C.

DDoS

D.

Man-in-the-Middle

How to approach this question

Input Validation = Checking what the user types. Injection = Typing bad code.

Full Answer

B.SQL Injection (SQLi) and Cross-Site Scripting (XSS)✓ Correct
B
Input validation ensures that data entered by users meets expected formats. This prevents attackers from injecting malicious code (like SQL commands or JavaScript) into the application.

Common mistakes

Thinking validation stops network attacks like DDoS.

Practice the full CPA ISC Practice Exam 3

82 questions · hints · full answers · grading

More questions from this exam