Suppressing Detailed Web Server Error Messages
Short answer
B Suppress detailed error messages, as they can expose sensitive information.
Question
Key Takeaways
The question tests the risk of information disclosure via verbose error pages, with the common trap being the belief that detailed errors aid legitimate troubleshooting over security.
Detailed web server error messages expose sensitive internal data and database queries to attackers. This page explains why suppressing these errors is critical for preventing information disclosure vulnerabilities.
Common mistake: Option A is often chosen by beginners who prioritize immediate troubleshooting convenience over the security risk of exposing stack traces or SQL queries.
Expert Analysis
Why the Answer Is Correct
Configuring web servers to suppress detailed error messages is a fundamental security hardening step. When a server returns verbose errors, such as database query strings or internal stack traces, it provides attackers with valuable intelligence about the underlying technology stack and potential entry points. This practice directly mitigates information disclosure risks, which are frequently exploited in conjunction with other attacks like SQL injection.
Why the Other Options Are Wrong
Retaining detailed errors (A) prioritizes debugging over security, leaving the system vulnerable to reconnaissance. Implementing encryption (C) does not prevent the exposure of sensitive logic if the message is displayed during an HTTP request; the content itself remains visible. Increasing backups (D) addresses data availability and recovery but has no bearing on the confidentiality of runtime error outputs.
Community Comment Notes
The community consensus strongly supports Option B, citing Module 15 regarding information disclosure. As user LordXander noted, this behavior constitutes "information disclosure due to stack trace error." User insaniunt also referenced specific study material confirming that suppressing these messages is the correct remediation step.
Exam Strategy
Always assume that any output visible to the end-user can be seen by an attacker. Prioritize configuration changes that minimize information leakage, such as custom error pages, over features that maximize debugging detail.
Frequently Asked Questions
Why not just encrypt the error messages?
Does hiding errors affect legitimate troubleshooting?
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 4 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 4
-
insaniunt 👍 3 Answered BB. Suppress detailed error messages, as they can expose sensitive information. Module 15 Page 2338
-
qwerty100 👍 2 Answered BB. Suppress detailed error messages, as they can expose sensitive information.
-
LordXander 👍 1 Answered BB...because that's information disclosure due to stack trace error
-
multivolt 👍 1Hey team can we double-check this response
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.