Which of the following is the primary purpose of input validation in application security?
Trap 1: To improve application performance by filtering out large inputs
Performance improvement is a side effect, not the primary security goal.
Trap 2: To encrypt user input before storing it in the database
Encryption protects data at rest, but input validation focuses on input integrity.
Trap 3: To log all user input for auditing purposes
Logging is important but not the primary purpose of input validation.
- A
To improve application performance by filtering out large inputs
Why wrong: Performance improvement is a side effect, not the primary security goal.
- C
To encrypt user input before storing it in the database
Why wrong: Encryption protects data at rest, but input validation focuses on input integrity.
- D
To log all user input for auditing purposes
Why wrong: Logging is important but not the primary purpose of input validation.