
EC-CouncilCertified Application Security Engineer (.NET)
Domain 3Objective 4
Input Validation for MVC CASENET Practice Questions (Page 6)
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 26–30
- 26
What does the ModelState.IsValid property indicate in an ASP.NET MVC controller action?
Select an answer first - 27
An MVC controller action accepts a POST request with a Comment model. The action needs to handle the case where the model is invalid. The application supports both traditional form posts and AJAX requests. Which implementation correctly handles both scenarios?
Select an answer first - 28
A banking application has a form for transferring funds between accounts. The security team is concerned about Cross-Site Request Forgery (CSRF) attacks. The development team needs to ensure that the form submission is protected against CSRF while still performing input validation on the amount and account number. Which approach should be used?
Select an answer first - 29
In a controller action that processes a form POST, what should you do if ModelState.IsValid is false?
Select an answer first - 30
What is a best practice when logging validation errors?
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.