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

EC-CouncilCertified Application Security Engineer (.NET)

Domain 3Objective 3

Input Validation for ASP.NET Core CASENET Practice Questions (Page 8)

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 46 practice questions to prepare you well beyond it. (estimate)

46questions here
10free pages
11concepts

Questions 36–40

  1. 36application · medium

    An ASP.NET Core MVC view uses the asp-validation-for tag helper to display validation messages. The developer notices that the error messages are not appearing when client-side validation fails. The server-side validation works correctly. What is the most likely cause?

    Select an answer first
  2. 37application · medium

    A developer is creating a custom validation attribute for an ASP.NET Core MVC application. The attribute must check that a string property does not contain any HTML tags. The developer has derived from ValidationAttribute and overridden IsValid. What should the IsValid method return when the value is valid?

    Select an answer first
  3. 38foundation · easy

    What is the purpose of the 'jquery-validation-unobtrusive' script in ASP.NET Core?

    Select an answer first
  4. 39application · medium

    A developer is building an ASP.NET Core Web API and wants to return a custom error response when validation fails, instead of the default ValidationProblemDetails. The controller has the [ApiController] attribute. What should the developer do to customize the response?

    Select an answer first
  5. 40foundation · easy

    Given the following model property, what validation rule does the attribute enforce? ```csharp [Range(1, 120)] public int Age { get; set; } ```

    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.