
EC-CouncilCertified Application Security Engineer (.NET)
Domain 3Objective 4
Input Validation for MVC CASENET Practice Questions (Page 1)
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 1–5
- 1
When handling an AJAX request that fails validation, what is the recommended way to return validation errors to the client?
Select an answer first - 2
Which method must you override when creating a custom validation attribute?
Select an answer first - 3
An MVC application has a controller action that handles both form posts and AJAX requests. The form includes an anti-forgery token. The developer notices that AJAX requests are failing because the anti-forgery token is not being submitted. The application uses jQuery to make AJAX requests. Which change is most appropriate to fix the issue while maintaining CSRF protection?
Select an answer first - 4
An MVC application has a controller action that processes a complex form. The action currently logs validation failures using a generic logging framework. A security audit requires that validation failures be logged with enough detail to support forensic analysis, but the application must comply with data protection regulations that prohibit logging personal data. Which logging strategy satisfies both requirements?
Select an answer first - 5
What is the purpose of output encoding in MVC views?
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.