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

46questions here
10free pages
11concepts

Questions 21–25

  1. 21expert · hard

    An ASP.NET Core Web API has a model with a `Quantity` property that must be an integer between 1 and 100. The team wants to ensure that non-integer values are rejected with a clear error message. They are using [ApiController]. What is the best way to achieve this?

    Select an answer first
  2. 22foundation · easy

    Which data annotation attribute enforces that a string property must have a minimum and maximum number of characters?

    Select an answer first
  3. 23application · medium

    A developer is building an ASP.NET Core Web API with an [ApiController] attribute on the controller. The API accepts a CreateOrderRequest model with data annotations. When validation fails, the API should automatically return a structured error response. What is the default behavior of [ApiController] when model validation fails?

    Select an answer first
  4. 24foundation · easy

    Which of the following is a common risk of accepting unvalidated input in an ASP.NET Core application?

    Select an answer first
  5. 25expert · hard

    A developer is building an ASP.NET Core Web API with [ApiController] and wants to return a custom error response that includes a correlation ID for logging. The default automatic validation response does not include the correlation ID. What is the most maintainable way to achieve this?

    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.