ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
During a code review of a Java servlet-based payment API, assessors notice that uncaught runtime exceptions propagate to the container, which returns full stack traces to callers and leaves request threads active until they time out. Which remediation best aligns with secure exception-handling practice to curb both denial-of-service risk and information leakage?
Add a global exception handler that catches unhandled exceptions, logs them, frees resources, and returns a generic 500 error page without the stack trace.
Disable logging of runtime exceptions so stack traces are never written to the response or log files.
Surround each business method with a catch block that swallows Throwable and continues processing without reporting an error.
Increase the servlet container's maximum thread pool size so additional requests can be served despite lingering faulted threads.
A centralized exception-handling mechanism ensures all unexpected faults are trapped in one place. By catching uncaught exceptions globally, the application can log full diagnostics, roll back or release any held resources, and immediately send a generic HTTP 500 response that omits stack-trace details. This both frees the worker thread promptly-avoiding pool exhaustion-and protects sensitive implementation information. Swallowing Throwable conceals errors and leaves the system unstable; turning off logging hampers forensics without stopping thread leaks; merely raising thread-pool size masks the symptom rather than the cause.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is a global exception handler important in secure code practice?
Open an interactive chat with Bash
What are the risks of exposing stack traces to users?
Open an interactive chat with Bash
Why is it harmful to swallow exceptions without reporting errors?
Open an interactive chat with Bash
ISC2 Certified Secure Software Lifecycle Professional (CSSLP)
Secure Software Implementation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .