
EC-CouncilCertified Application Security Engineer (Java)
Domain 5Objective 3
Cryptographic Attacks and Defensive Coding CASEJAVA Practice Questions (Page 6)
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 26–30
- 26
Which testing method is most effective for identifying hardcoded cryptographic keys in source code?
Select an answer first - 27
A Java REST API returns detailed error messages during decryption failures. An attacker notices that the API returns 'Invalid padding' for some ciphertexts and 'Authentication failed' for others. Which defensive coding change best mitigates the padding oracle attack?
Select an answer first - 28
A Java developer is implementing a file encryption feature. They need to choose a cipher transformation string for the `Cipher.getInstance()` call. The requirement is to provide both confidentiality and integrity. Which transformation string is the most appropriate?
Select an answer first - 29
A Java application needs to encrypt data at rest. The team is choosing between implementing AES manually with a custom algorithm and using the Java Cryptography Extension (JCE) with a standard provider. What is the primary security advantage of using JCE?
Select an answer first - 30
A Java application accepts encrypted data from users and decrypts it using a symmetric key. The application currently does not validate the ciphertext length before decryption. An attacker sends a very short ciphertext that causes an exception revealing the key length. Which defensive coding practice is most effective?
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.