Oracle
1Z0-899 · Question #190
1Z0-899 Question #190: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-899 to reveal the answer and full explanation for question #190. The question stem and answer options stay visible for context.
Question
A web application uses a cookies to track a client as it navigates through the pages that constitutes the application. Which code snippet can be used by the web application to reduce the chance of a cross-site scripting attack by setting some property of the cookie before returning it to the client?
Options
- Acookie.setHttpOnly(true)
- Bcookie.setMaxAge(3600)
- Ccookie.setPath("/")
- Dcookie.setSecure(true)
Unlock 1Z0-899 to see the answer
You've previewed enough free 1Z0-899 questions. Unlock 1Z0-899 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.