Threats, Vulnerabilities, and Attacks
A website saves a user's preferences in a small file in the browser, which is sent back with each request. What is this file?
Show the answer
Correct answerA. Cookie
AWhy this is right: A cookie is small data set by a site and returned by the browser with each request to that site.
BWhy not this: A library is code that runs in the page; it is not a stored file returned with requests.
CWhy not this: A vault is an encrypted store of credentials kept by a password manager, not data a site sets.
DWhy not this: An extension is installed code that adds browser features; websites do not use it to store preferences.
A cookie is a small piece of data a site stores in the browser and the browser returns with later requests, used for preferences, tracking and login state. An extension is installed software that adds browser features, not site-set data.