exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 38 discussion

Actual exam question from Microsoft's 70-480
Question #: 38
Topic #: 4
[All 70-480 Questions]

You are developing an e-commerce website. Users place products into a shopping cart.
You need to ensure that the shopping cart data is available between browser sessions.
Which object should you use to store the shopping cart data?

  • A. clientStorage
  • B. localStorage
  • C. applicationStorage
  • D. sessionStorage
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
With local storage, web applications can store data locally within the user's browser.
HTML local storage, better than cookies.
Before HTML5, application data had to be stored in cookies, included in every server request. Local storage is more secure, and large amounts of data can be stored locally, without affecting website performance.
Reference: HTML5 Local Storage

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
dr_0verboost
4 years, 8 months ago
B is the correct answer as the data needs to remain in memory, therefore its local storage.
upvoted 2 times
...
pdbeta
4 years, 10 months ago
The answer is C.
upvoted 1 times
pdbeta
4 years, 10 months ago
sorry. The answer is D
upvoted 1 times
Raly
4 years, 9 months ago
B is the correct answer https://www.briefmenow.org/microsoft/which-object-should-you-use-to-store-the-shopping-cart-data/
upvoted 4 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 ...