Multiple choice technology security

Leaving comments in HTML source code when an application leaves the development environment

  1. Is a good programming practice

  2. Is very useful during code reviews

  3. Is the recommended practice for secure code maintenance

  4. May give the attacker valuable information to perform an exploit

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

HTML comments visible in source code can reveal internal application structure, debugging information, file paths, or sensitive implementation details to attackers. Code comments are useful during development but should be removed or minimized in production to prevent information disclosure vulnerabilities.