
EC-CouncilCertified Application Security Engineer (Java)
Domain 5Objective 3
Cryptographic Attacks and Defensive Coding CASEJAVA Practice Questions (Page 8)
Part of the Secure Coding: Cryptography domain, which makes up ~13% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~7–10 in this domain), expect 2–3 from this objective — we provide 43 practice questions to prepare you well beyond it. (estimate)
43questions here
9free pages
7concepts
Questions 36–40
- 36
A Java application accepts a base64-encoded ciphertext from a client and decrypts it. An attacker sends a malformed base64 string that causes the decoder to throw an exception revealing internal class names. Which defensive coding practice is most directly needed?
Select an answer first - 37
Which of the following is a best practice for handling exceptions in cryptographic code?
Select an answer first - 38
A Java application needs to generate a secret key for AES-256 encryption. The developer uses `new Random()` to generate the key bytes. Which change should be made to ensure the key is cryptographically secure?
Select an answer first - 39
Which cryptographic attack involves an attacker systematically trying all possible keys until the correct one is found?
Select an answer first - 40
A Java service accepts a base64-encoded AES key from a request header and uses it to decrypt incoming payloads. An attacker submits a malformed key that causes the service to throw a detailed exception revealing the key length and algorithm. Which defensive coding practice should be applied?
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.