ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question

During a peer review of a new RESTful microservice, you notice that the catch blocks serialize the Java exception message and full stack trace into the JSON response sent to callers. From a secure error and exception handling standpoint, which change most effectively preserves diagnostic information for developers while minimizing information disclosure to attackers?

  • Include the SQL statement and parameter values that caused the failure inside the JSON error response for faster debugging.

  • Disable all error logging in production so that no sensitive data can be captured or leaked.

  • Log the full stack trace on the server and return a generic HTTP 500 response body such as "Internal server error" to the client.

  • Continue returning the exception message but encode the stack trace in Base64 so it is less readable.

ISC2 Certified Secure Software Lifecycle Professional (CSSLP)
Secure Software Implementation
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot