PDPF practice question 7 of 25
What is the main purpose of cookies?
Full set: 149 questionsThe main purpose of HTTP cookies is to enable state management for the otherwise stateless HTTP protocol. They are small pieces of data sent from a website and stored on the user's computer by the web browser. Their primary functions are session management (e.g., keeping a user logged in), personalization (e.g., remembering user preferences like language or theme), and tracking user activity on a specific site. Option A accurately summarizes these core, intended functions that are fundamental to modern web application usability.
B. Browser history is a core function managed by the web browser application itself, not by cookies, which are site-specific data files.
C. While third-party cookies are widely used for tracking to serve targeted ads, this is a secondary application, not the fundamental or main purpose for which they were created.
D. Cookies are passive text files and cannot execute code or "infect" a computer; this description applies to malware or adware, not standard cookies.
1. Internet Engineering Task Force (IETF) RFC 6265, "HTTP State Management Mechanism": The abstract and Section 1 ("Introduction") state that cookies are used by servers to store state at user agents, enabling session maintenance. It explicitly lists common uses as "authentication, personalization (such as user preferences), and tracking." This directly supports the functions listed in option A as primary purposes. (Source: RFC 6265, Abstract & Section 1, April 2011).
2. Mozilla Developer Network (MDN) Web Docs, "HTTP Cookies": This official documentation outlines the main purposes of cookies. It lists "Session management" (Logins, shopping carts, etc.), "Personalization" (User preferences, themes), and "Tracking" as the three primary uses. The first two align perfectly with the answer. (Source: MDN Web Docs, "HTTP Cookies", Section: "Purpose of cookies").
3. Stanford University, CS 142 Courseware, "Sessions and Cookies": Lecture notes explain that cookies are the primary mechanism for implementing sessions on the web. They are used to "remember information about a user between requests," such as login status and user-specific settings, which directly corresponds to identifying the user and their preferences. (Source: Stanford CS142, Lecture Notes 08, "Sessions and Cookies", Slide 11-15).
Keep practicing
Take the free PDPF practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PDPF practice questions
- Question 1A person who works for a union took home a draft newsletter to finish it. The thumb drive…
- Question 2The GDPR describes the principle of data minimization. How can organizations comply with …
- Question 3According to the GDPR, what is a description of binding corporate rules (BCR)?
- Question 4What is the definition of Controller according to GDPR?
- Question 5A company wishes to use personal data of their customers. They wish to start sending all …
- Question 6How is Data Lifecycle Management (DLM) related to data protection?
