
EC-CouncilCertified Application Security Engineer (Java)
Domain 4Objective 2
Authentication and Authorization Defensive Techniques in Java CASEJAVA Practice Questions (Page 8)
Part of the Secure Coding: Authentication and Authorization 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 3–5 from this objective — we provide 45 practice questions to prepare you well beyond it. (estimate)
45questions here
9free pages
8concepts
Questions 36–40
- 36
When an authentication failure occurs, what is the recommended approach for logging the error details?
Select an answer first - 37
A Java application uses BCrypt for password hashing. The team wants to increase the work factor from 10 to 12. What is the best way to handle existing hashes?
Select an answer first - 38
Which Java authentication mechanism transmits credentials as Base64-encoded text in the HTTP Authorization header and is considered weak unless used over TLS?
Select an answer first - 39
A Java application uses Spring Security with a custom PermissionEvaluator to check permissions on domain objects. The evaluator uses the authenticated user's roles and a permission table. A user with role 'EDITOR' can edit articles, but the requirement is that only the article's author can edit. What is the best way to enforce this?
Select an answer first - 40
A Java web application uses Spring Security with method-level security enabled. The requirement is that only users with the 'ADMIN' role can call the deleteUser method, but the application also needs to allow users with the 'SUPERVISOR' role to delete users they manage. The current code uses @PreAuthorize("hasRole('ADMIN')"). What is the most appropriate change to meet the requirement?
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.