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

EC-CouncilCertified Application Security Engineer (Java)

Domain 3Objective 2

Secure Coding Practices for Input Validation in Java CASEJAVA Practice Questions (Page 4)

Part of the Secure Coding: Input Validation domain, which makes up ~9% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~5–7 in this domain), expect 3–4 from this objective — we provide 35 practice questions to prepare you well beyond it. (estimate)

35questions here
7free pages
6concepts

Questions 16–20

  1. 16application · easy

    A Java application uses a regex to validate a user's phone number. The regex is currently compiled every time it is used. The team wants to improve performance and security. What should they do?

    Select an answer first
  2. 17application · medium

    A Java application allows users to specify a file path to download a file from the server. The team wants to prevent directory traversal attacks. Which validation should be applied to the file path?

    Select an answer first
  3. 18foundation · easy

    How can code reviews help improve input validation in a Java project?

    Select an answer first
  4. 19application · medium

    A Java web application accepts a user-supplied 'username' field that is later used in a database query. The security team mandates that only alphanumeric characters and underscores are allowed. Which validation approach is most appropriate?

    Select an answer first
  5. 20foundation · easy

    Which Java specification provides annotations like @NotNull and @Size for declarative input validation?

    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. “CASEJAVA” is a trademark of its owner, used for identification only.