
EC-CouncilCertified Application Security Engineer (.NET)
Domain 3Objective 1
Input Validation Approaches and Filtering CASENET Practice Questions (Page 5)
Part of the Secure Coding: Input Validation domain, which makes up ~11% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~6–9 in this domain), expect 2–2 from this objective — we provide 49 practice questions to prepare you well beyond it. (estimate)
49questions here
10free pages
9concepts
Questions 21–25
- 21
Why is it important to validate the data type of user input?
Select an answer first - 22
A .NET MVC application has a registration form with client-side validation for email format, password length, and required fields. The security team insists that the server must also validate all inputs. Which statement best justifies this requirement?
Select an answer first - 23
A .NET application accepts a 'role' field from a form. The valid roles are 'Admin', 'User', and 'Guest'. The current code uses a blacklist to reject the value 'Admin' because it is considered dangerous. What is the most secure way to handle this field?
Select an answer first - 24
A developer is building a feature that exports user data to a CSV file. The data includes user-supplied fields that may contain commas, quotes, and newlines. What is the most important step to prevent CSV injection?
Select an answer first - 25
A team is building an ASP.NET MVC form that collects a user's name and email address. The front-end uses jQuery validation to ensure the email format is correct and the name is not empty. The back-end currently does not validate these fields. What is the most important security improvement to make?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “CASENET” is a trademark of its owner, used for identification only.