CompTIACompTIA
PT0-002 · Question #321
PT0-002 Question #321: Real Exam Question with Answer & Explanation
Sign in or unlock PT0-002 to reveal the answer and full explanation for question #321. The question stem and answer options stay visible for context.
Tools and Code Analysis
Question
During a code review assessment, a penetration tester finds the following vulnerable code inside one of the web application files: <% String id = request.getParameter("id"); %> Employee ID: <%= id %> Which of the following is the BEST remediation to prevent a vulnerability from being exploited, based on this code?
Options
- AParameterized queries
- BPatch application
- COutput encoding
- DHTML sanitization
Unlock PT0-002 to see the answer
You've previewed enough free PT0-002 questions. Unlock PT0-002 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Web application security#Cross-site scripting (XSS)#Output encoding#Vulnerability remediation