
EC-CouncilCertified Application Security Engineer (.NET)
Domain 3Objective 1
Input Validation Approaches and Filtering CASENET Practice Questions (Page 3)
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 11–15
- 11
A .NET API endpoint accepts a JSON payload with a 'quantity' field. The field should be an integer between 1 and 100. The current code uses Convert.ToInt32() without any range check. What is the most secure way to validate this input?
Select an answer first - 12
A team is designing a validation module for a .NET application that accepts various types of input: a phone number, a ZIP code, and a user ID. They want to use whitelist validation for all fields. What is the most important principle to apply?
Select an answer first - 13
Which .NET method is commonly used to HTML-encode a string before rendering it in a web page?
Select an answer first - 14
A file download endpoint in an ASP.NET Core application accepts a filename parameter and uses it to read a file from a directory. A penetration test revealed that an attacker can use encoded path traversal sequences like %2e%2e%2f to escape the directory. The developer wants to fix this while still allowing legitimate filenames. What should the developer do?
Select an answer first - 15
What is the primary use of regular expressions in input validation?
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.