
EC-CouncilCertified Application Security Engineer (.NET)
Domain 3Objective 4
Input Validation for MVC CASENET Practice Questions (Page 10)
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 52 practice questions to prepare you well beyond it. (estimate)
52questions here
11free pages
15concepts
Questions 46–50
- 46
An MVC application is experiencing a high volume of failed validation attempts on a login form. The security team suspects automated attacks. The developer needs to log validation failures with enough detail to identify attack patterns while avoiding logging sensitive data. Which logging approach is most appropriate?
Select an answer first - 47
An MVC application uses [Remote] validation to check if an email address is already registered. The remote validation action is implemented as a public controller action that returns JsonResult. A security review flags that the action is vulnerable to enumeration attacks because it reveals whether an email is registered. Which mitigation is most appropriate?
Select an answer first - 48
Why is it important to log validation failures in an MVC application?
Select an answer first - 49
An e-commerce application has a checkout form where users enter a start date and an end date for a rental period. The business rule requires that the end date must be after the start date. The team wants to enforce this rule as part of the model validation so that the controller action can check ModelState.IsValid and return a validation error if the rule is violated. Which approach should be used?
Select an answer first - 50
A financial application has a login form. The security team wants to log all validation failures, such as when a user enters an invalid username or password, to support security monitoring and auditing. The development team needs to implement logging for validation failures in the controller action. Which approach should be used?
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.