Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
EC-Council logo

EC-CouncilCertified Application Security Engineer (.NET)

Domain 3Objective 4

Input Validation for MVC CASENET Practice Questions (Page 4)

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 16–20

  1. 16application · medium

    A developer is building an ASP.NET MVC registration form for a financial services application. The form collects a username, email address, and account balance. The username must be 6–20 characters and contain only letters and digits. The email must be a valid format. The account balance must be between 0 and 1,000,000. The developer wants to enforce these rules declaratively on the model so that validation is automatically applied both when the form is posted and when the model is bound from an API request. Which approach satisfies the requirement with the least custom code?

    Select an answer first
  2. 17application · medium

    An MVC application has a form that allows users to change their email address. The form is protected with an anti-forgery token. A security review notes that the controller action that processes the form does not validate the anti-forgery token. Which change is required to enforce CSRF protection?

    Select an answer first
  3. 18foundation · easy

    In Razor views, how does the @ symbol affect output encoding by default?

    Select an answer first
  4. 19foundation · easy

    How can you display validation error messages to the user in an MVC view?

    Select an answer first
  5. 20foundation · easy

    What is the primary purpose of the anti-forgery token in ASP.NET MVC forms?

    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.