READ Free Dumps For Oracle- 1z0-899
Question ID 4717 | 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? |
Option A | A. cookie.setHttpOnly(true) |
Option B | B. cookie.setMaxAge(3600) |
Option C | C. cookie.setPath(“/”) |
Option D | D. cookie.setSecure(true) |
Correct Answer | A |
Question ID 4718 | Given the portion of a valid Java EE web application’s directory structure: |
Option A | A. All three files are directly accessible. |
Option B | B. Only File1.html is directly accessible. |
Option C | C. Only File2.html is directly accessible. |
Option D | D. Only File3.html is directly accessible. |
Option E | E. Only File1.html and File2.html are directly accessible. |
Option F | F. Only File1.html and File3.html are directly accessible. |
Correct Answer | B |