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

EC-CouncilCertified Application Security Engineer (Java)

Domain 6Objective 2

Defensive Coding Against Broken Session Management CASEJAVA Practice Questions (Page 7)

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

45questions here
9free pages
9concepts

Questions 31–35

  1. 31application · medium

    A Java servlet application sets a session cookie using `response.addCookie(new Cookie("JSESSIONID", session.getId()))`. The application is served over HTTPS, but users report that the session sometimes appears in HTTP referrer headers when they click external links. Which cookie attribute should be added to mitigate this exposure?

    Select an answer first
  2. 32foundation · easy

    What is a common technique to detect session hijacking?

    Select an answer first
  3. 33foundation · easy

    Which of the following is a risk of placing session IDs in URLs?

    Select an answer first
  4. 34foundation · easy

    Which Java API is recommended for generating cryptographically strong random session IDs?

    Select an answer first
  5. 35application · medium

    A Java application generates session IDs using `UUID.randomUUID().toString().replace("-", "")`. A security review notes that UUIDs are not cryptographically random and may be predictable. Which approach should be used to generate session IDs?

    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.