exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 343 discussion

Actual exam question from Cisco's 350-901
Question #: 343
Topic #: 1
[All 350-901 Questions]

An engineer is developing an application that must store the session information for a web app on the browser and the JavaScript code must be prevented from accessing the session cookie. What must be implemented to meet the requirements?

  • A. Enable the HttpOnly flag.
  • B. Enable the secure flag.
  • C. Use only POST requests.
  • D. Use nonpersistent cookies.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
johntermlen
9 months, 4 weeks ago
Selected Answer: A
The answer is A. Enable the HttpOnly flag. The HttpOnly flag is a security feature that prevents JavaScript code from accessing the session cookie. This is done by preventing the browser from exposing the session cookie in the Document Object Model (DOM).
upvoted 3 times
...
ThePokemonNuzlockingMaster
10 months, 3 weeks ago
Selected Answer: A
Agreed with the guys below saying A, refer to link attached by Fedesarucho
upvoted 1 times
...
Fedesarucho
1 year, 1 month ago
Selected Answer: A
https://www.cookiepro.com/knowledge/httponly-cookie/#:~:text=Last%20Updated%3A%20September%203%2C%202021,anything%20other%20than%20the%20server.
upvoted 4 times
...
Fedesarucho
1 year, 1 month ago
https://www.cookiepro.com/knowledge/httponly-cookie/#:~:text=Last%20Updated%3A%20September%203%2C%202021,anything%20other%20than%20the%20server.
upvoted 1 times
...
mkOwl
1 year, 1 month ago
Selected Answer: A
I'm more into A: With HttpOnly flag enabled JavaScript won't be able to read auth cookies.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago