CompTIA Study Materials
AWS Study Materials
AWS Cloud Practitioner AWS Cloud Practitioner
AWS Cloud Practitioner CLF-C02
Microsoft Study Materials
Microsoft Azure Fundamentals Microsoft Azure Fundamentals
Microsoft Azure Fundamentals AZ-900

Free CompTIA Security+ SY0-601 Practice Question

A developer is designing a web application and wants to ensure that detailed error messages do not expose sensitive system information to potential attackers. Which approach should the developer take when implementing error handling for the web application to enhance security?

  • Provide detailed error messages including system architecture and software version numbers.

  • Redirect the user to the home page whenever an error occurs without displaying any message.

  • Customize HTTP response codes to indicate the specific type of error that occurred.

  • Display a generic error message to the user and log the details of the error internally for review by developers.

This question is for objective:
Attacks, Threats, and Vulnerabilities
Your Score:
Attacks, Threats, and Vulnerabilities
Architecture and Design
Implementation
Operations and Incident Response
Governance, Risk, and Compliance