
EC-CouncilCertified Application Security Engineer (.NET)
Domain 3Objective 4
Input Validation for MVC 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 52 practice questions to prepare you well beyond it. (estimate)
52questions here
11free pages
15concepts
Questions 21–25
- 21
Why is it important to validate the size of an uploaded file?
Select an answer first - 22
An MVC application allows users to upload documents. The security team requires that only PDF files are accepted. The developer implements validation that checks the file extension is '.pdf' and the MIME type is 'application/pdf'. A penetration test reveals that an attacker can upload a file with a '.pdf' extension and MIME type 'application/pdf' that is actually an executable. Which additional validation is most effective?
Select an answer first - 23
A healthcare portal has a registration form where users must provide a date of birth. The business rule states that users must be at least 18 years old to register. The development team wants to enforce this rule using declarative validation on the model so that it is automatically checked during model binding and the error is displayed in the validation summary. Which approach should the team use?
Select an answer first - 24
A user registration form in an MVC application includes a Username field. The business requirement is to provide immediate feedback to the user if the username is already taken, without submitting the entire form. The application uses jQuery unobtrusive validation. Which approach should the developer use?
Select an answer first - 25
What is the purpose of the Remote validation attribute in ASP.NET MVC?
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.