Question 390
The approved security recommendation is: Make error handling fail closed and suppress sensitive diagnostic output in user-facing responses. Its motivating requirement is: An internal API returns detailed stack traces and internal credentials when database authentication fails. Which explanation best supports this implementation choice?
Explanation
Correct Answer
The selected response is: Make error handling fail closed and suppress sensitive diagnostic output in user-facing responses. Its effectiveness is shown when negative tests return controlled errors without secrets and sensitive diagnostics remain restricted to authorized logs.
Incorrect Answers
Control selection ignored nonconfidentiality requirements and created an avoidable outage dependency. The stated evidence instead indicates: Exception handling exposed privileged internals during abnormal operation.
Nonconstant comparison paths leaked secret-dependent execution timing. The stated evidence instead indicates: Exception handling exposed privileged internals during abnormal operation.
Broad shared credentials violated least privilege and workload accountability. The stated evidence instead indicates: Exception handling exposed privileged internals during abnormal operation.