CompTIA Security+ SY0-801 Data Protection: States, Classifications, Methods and Roles
Data protection is the set of concepts and strategies an organization uses to keep data confidential, accurate and available wherever it is stored, sent or processed: knowing what kind of data it holds, how sensitive it is, which method secures it, who is responsible for it, how it is handled and kept, and which rules govern it. CompTIA Security+ objective 3.3 asks you to summarize all of these: structured and unstructured data; data at rest, in transit and in use; government and commercial classifications; the methods used to secure data (masking, hashing, filtering, tokenization, encryption, data transpose, deidentification and obfuscation); the data protection roles; data handling on endpoints, with marking and labeling, geofencing, data location and data placement; the data management life cycle; and the data compliance categories. This lesson explains each one and contrasts the near-twins that are easiest to mix up, so you can pick the method, role or control that meets every requirement in a scenario.
On this page9 sections
- Data types and data states
- Data classifications: government and commercial
- Hashing, encryption, tokenization and masking
- Deidentification, filtering, data transpose and obfuscation
- Data protection roles
- Data handling: endpoints, marking and labeling
- Geofencing, data location and data placement
- The data management life cycle and legal holds
- Data compliance categories and standards
- Distinguish structured from unstructured data and data at rest, in transit and in use, and match each state to the controls that protect it
- Rank the government classifications by damage and explain the commercial labels, including why critical data is about availability and integrity rather than secrecy
- Choose between hashing, encryption, tokenization, static or dynamic masking, filtering, data transpose, obfuscation and anonymization or pseudonymization from what must remain possible afterwards
- Identify the data owner, custodian, steward, operator, controller and subprocessor in a scenario, including when a subprocessor needs the controller's authorization
- Apply data handling concepts: endpoint copies, marking and labeling, geofencing, data location and data placement
- Place controls at the right stage of the data management life cycle and explain how a legal hold overrides retention and disposal
- Identify the data compliance category that drives an obligation and explain why a standard such as PCI DSS binds organizations without a law
Data types and data states
Data type describes how data is organized; data state describes what is happening to it right now. The two are independent: a database row is structured data whether it sits on disk, crosses the network or is loaded into memory, and each combination needs a different control.
Structured and unstructured data
Structured data lives in fixed fields with a defined schema, such as relational database tables and well-formed spreadsheets. Because every value sits in a known column, controls can target it precisely: column-level encryption, field masking, per-column permissions. Unstructured data has no field layout: word-processing files, PDF contracts, slide decks, chat transcripts, photographs, voicemail and video. Sensitive details can sit anywhere inside free text, audio or pixels, so controls that work by naming a column have nothing to point at. Unstructured data is protected with file-level encryption, content-inspecting discovery and DLP, labeling and handling rules instead. Between the two sits semi-structured data such as JSON, XML or log records, which carries tags or keys but no fixed table schema; content with no tags or keys at all is unstructured.
Data at rest, in transit and in use
| State | What it means | Typical controls | What those controls do not cover |
|---|---|---|---|
| Data at rest | Stored on media: disks, databases, backups, log files, removable drives | Full-disk, volume, file or database/column encryption; access permissions | The same data once it is copied over a network or loaded into memory |
| Data in transit | Moving across a network: browser to server, server to server, a VPN tunnel | TLS, IPsec/VPNs, SSH, SFTP | The copy that lands on disk at either end |
| Data in use | Being processed in memory or by the CPU, where it must be decrypted to be worked on | Isolated processing: secure enclaves, confidential computing; access control on the process | Nothing else reaches this state; storage and transport encryption have already been undone |
Two behaviours decide most scenarios. First, full-disk encryption is transparent while the system is running: it protects against someone who removes a powered-off drive, but once the system has booted and unlocked the volume, every account and process with permission to open a file reads plaintext. Disk encryption is not an access control. Second, protecting one state does not protect the others. However well data is encrypted on disk and on the wire, it is decrypted in memory to be processed, so an attacker who can read memory there (RAM scraping, memory dumps) sees plaintext. Only isolated processing addresses that state: a secure enclave or confidential-computing environment keeps the data's memory encrypted and walled off from other code, including the operating system. Protections designed to stop an attack from starting are a different job from keeping data confidential while it is being processed.
Data classifications: government and commercial
A data classification is a label for how much harm the organization suffers if data is disclosed, altered or lost, and it sets how the data must be handled. The objective lists two families of labels.
Government levels (ranked by damage)
| Level | Unauthorized disclosure could reasonably be expected to cause |
|---|---|
| Top secret | Exceptionally grave damage to national security |
| Secret | Serious damage to national security |
| Confidential | Damage to national security |
Top secret is the highest of the three and confidential the lowest. Each level is defined by its damage threshold, so a description of the expected damage is enough to place data at a level. (Unclassified is used for government information that does not meet any of these thresholds.)
Commercial labels
- Public: meant for anyone, such as brochures, press releases and published web content. Disclosure causes no harm.
- Sensitive: data that needs protection beyond ordinary internal use. In common Security+ teaching the label is applied to regulated personal data (PII), health information (PHI) and intellectual property. Some organizations instead use it for a lower internal tier, such as internal procedures.
- Confidential: data limited to those with a business need, such as customer records or contracts; disclosure causes real harm.
- Restricted: the most tightly controlled tier in many schemes, limited to named people or roles, such as merger plans or cardholder data.
- Critical: data the organization cannot operate without. The concern is availability and integrity, not secrecy.
Organizations name and rank their own commercial tiers, so treat any ordering of sensitive, confidential and restricted as a typical scheme rather than a fixed standard. The distinction to hold onto is critical versus the disclosure tiers: public, sensitive, confidential and restricted describe who may see data; critical describes what happens when it is lost or corrupted. The two can diverge. A retailer's product catalog is published on its website, so it is public, yet if the copy the ordering system runs on were deleted or tampered with, sales would stop. Data can be harmless to disclose and still critical.
Hashing, encryption, tokenization and masking
Choose the data-securing method by what must still be possible afterwards: recovering the original, verifying it, or merely displaying part of it. These four are the methods most often confused.
| Method | What it does | Can the original be recovered? | Fits when |
|---|---|---|---|
| Hashing | A one-way function turns the value into a fixed-length digest | No; you can only hash a candidate and compare | You need to verify (integrity checks, checking a presented secret) but never to read the value again |
| Encryption | A key transforms the value into ciphertext | Yes, by anyone holding the key | The data must be restored or read later: backups, stored files, transmissions |
| Tokenization | Replaces the value with a substitute token; in the vault-based model a random token maps back only through an isolated vault | Only through the vault (or, for cryptographic tokens, the key) | Systems must store and pass a reference to the value without holding the value itself |
| Masking | Hides all or part of the value, such as showing only the last characters of an identifier | Dynamic masking: the original is still stored. Static masking: the copy holds substitutes and the original is gone from it | People need partial visibility, or a non-production copy needs realistic but fake values |
Hashing versus encryption
Hashing suits anything you only ever compare. A forensic investigator hashes a disk image when it is acquired and again before it is presented, and matching digests show it was not altered. Systems that check a secret, such as a password or PIN, store its digest and compare the digest of what is presented. Because nothing turns a digest back into its input, a stolen table of digests gives an attacker no stored secrets to read (only the option of guessing and comparing, which is why strong secrets and salting matter). Any reversible method, by contrast, is only as safe as its key or vault, and the system that verifies is usually the one allowed to reverse it. The opposite requirement points the other way: anything that must later be restored to its original form needs encryption, because every one-way or irreversible method fails that test. (How hash algorithms, salting and key management work is covered under cryptographic solutions in objective 1.3.)
Tokenization versus encryption
Ciphertext is mathematically derived from the original, so whoever obtains or breaks the key recovers the value. In the vault-based tokenization model that Security+ describes, a token is a random value with no mathematical relationship to what it replaces; it is generated independently, and only a lookup in the isolated vault maps it back. Stealing tokens therefore yields nothing to decrypt, and the only route back is the vault, which is tightly controlled and audited. That also shrinks compliance scope: systems that hold only such tokens do not store cardholder data, whereas systems holding encrypted card numbers generally remain in PCI DSS scope for an organization that can decrypt them. (PCI guidance also recognizes cryptographic tokens produced by encryption or format-preserving encryption; those keep a mathematical link to the value, and their systems stay in scope.) Unlike a hash, a token can still be redeemed for the original by the one authorized service that calls the vault.
Static and dynamic masking
Dynamic masking changes only what a user sees, at query or display time: a help-desk screen might show a customer's email address as j***@example.com while the stored address is unchanged. The real data is still there, so dynamic masking does nothing for a copy of the data that leaves your control. Static masking permanently rewrites the values in a copy, such as a training data set or an analytics sandbox, with realistic, format-valid substitutes and keeps no mapping back, so the copy contains no real values to recover.
Deidentification, filtering, data transpose and obfuscation
These methods reduce what data reveals, by stripping identity, leaving fields out, rearranging values or making content hard to interpret.
Deidentification: anonymization versus pseudonymization
| Anonymization | Pseudonymization | |
|---|---|---|
| What happens to identifiers | Removed or generalized so no one can link records back to a person | Replaced with a pseudonym; the link to the person is kept separately |
| Reversible? | No | Yes, by whoever holds the mapping or key |
| Still personal data under GDPR? | No; truly anonymous data falls outside it | Yes, for anyone who holds or can reasonably obtain the mapping; it is a recognized safeguard, not an exit from the law |
| Can records about one person be linked? | Usually not | Yes, if the same pseudonym is used consistently |
The deciding test is whether a way back to identity still exists anywhere. If a lookup table or key is held, even by a separate team in a separate system, the data is pseudonymized, not anonymized. Pseudonyms can be random values recorded in a lookup table or values derived with a secret key; either way it is the retained means of re-identification that makes it pseudonymization. Because a consistent pseudonym repeats for the same person, pseudonymized records can still be joined across time or across data sets, which anonymization deliberately prevents. Pick anonymization when no one ever needs to know who a record was about or to connect a person's records; pick pseudonymization when linking or later re-identification must stay possible for an authorized party.
Filtering
Filtering removes records or fields the recipient does not need, so they are simply not in the output. Sending an auditor only the transactions from the audit period, without staff home addresses, is filtering. It can be applied per recipient, so each consumer of the same source receives only the fields it is entitled to while the source keeps the full data for those who need it. That differs from masking and tokenization, which leave the field present with a partial or substitute value.
Data transpose
Data transposition rearranges data, for example moving characters or values into different positions according to a pattern, or swapping the rows and columns of a table, so values no longer read in their original order. Every original element is still present and reversing the pattern restores it. Because the pattern is the only secret, transposition is a weak obscuring step, not a substitute for encryption.
Obfuscation
Obfuscation makes data or code hard for a person to understand while it remains usable. Minifying and scrambling a web application's JavaScript so its logic is hard to follow is obfuscation: the browser still runs the code and no key is involved. Encryption, by contrast, must be decrypted with a key before the content can be used.
Data protection roles
Data protection roles separate who is accountable for data, who operates its controls, who keeps it accurate, who works with it, and, for personal data, who decides its purpose and who processes it on that party's behalf.
| Role | Responsibility | Typical holder |
|---|---|---|
| Data owner | Accountable for the data; decides its classification and who may access it | A senior business leader, such as the head of HR for personnel records |
| Data custodian | Implements and runs the controls the owner sets: permissions, backups, encryption, storage | IT staff, a database or system administrator |
| Data steward | Data quality and meaning: field definitions, metadata, data-quality rules and the metadata that keeps each field's meaning and label consistent | A data analyst or business data specialist |
| Data operator | Creates, updates and uses the data in daily work, within the access granted by others | Front-line staff such as claims handlers or sales representatives working in a business application |
| Data controller | Decides why and how personal data is processed, and answers for that legally | The organization whose customers or employees the data describes |
| Data processor / subprocessor | A processor handles personal data on the controller's behalf; a subprocessor is a further party the processor engages | A service provider, and the provider's own vendors |
Two pairs cause most confusion. Owner versus custodian: the owner decides, the custodian does. Handling data constantly does not make someone its owner; the IT staff who carry out the owner's access and protection decisions are custodians. Steward versus owner: the steward looks after the data's quality, definitions and correct labeling, but accountability and access decisions stay with the owner. CompTIA does not publish its own definition of data operator; the defensible reading is a person who works with the data day to day through the access they are given, working only within the access granted by others; the policy, the data definitions and the systems themselves belong to other roles.
Controllers, processors and subprocessors
Follow the chain to identify each party. A university that decides to run a student survey and what to do with the answers is the controller; the online survey platform it hires is a processor; the cloud infrastructure provider the platform hosts responses on is a subprocessor. (If two organizations decide the purposes and means together, they are joint controllers.) Under GDPR Article 28(2), a processor may not engage another processor without the controller's prior specific or general written authorization; with general authorization, the processor must tell the controller about changes so it can object. The authorization runs from the controller to the processor, and holding the data does not turn a subprocessor into a controller. Governance aspects of these roles, with data retention requirements and legal hold, also appear under security compliance in objective 5.4.
Data handling: endpoints, marking and labeling
Data handling covers where copies of data end up and how people and tools recognize how sensitive each copy is.
Endpoints
Laptops, phones, tablets and removable media hold copies outside central controls. Server-side encryption, access control and TLS protect the server copy and the trip to the device; they do nothing for the copy once it lands there. Match the control to the path the data can take:
| Risk to the endpoint copy | Control that addresses it | Limit |
|---|---|---|
| Device lost or stolen while powered off | Full-disk encryption | Protects only what is on that device's own drive |
| File copied elsewhere: removable media, personal cloud sync, an email attachment | Endpoint DLP or removable-media control to block the copy; file-level encryption or rights management to protect the file wherever it goes | Full-disk encryption does not travel with a copied file |
| Device used where it cannot reach the network | Controls enforced locally on the file or device | Controls that need a connection or a location check cannot be evaluated offline |
Choose the control that covers the place where the data is actually exposed; a control on a different location does not reduce that exposure.
Marking and labeling
Marking is a visible indicator for people, such as a classification banner on a slide, a watermark or a stamp on a paper form. Labeling is classification metadata attached to a file or message, which tools such as DLP and rights management read to enforce policy. Each audience needs its own form: tools cannot read a visual mark, and people cannot see metadata, so data that exists both as files and on paper or screen needs both.
A label protects only the copy that carries it. Content moved into a new file, by copy and paste, export or screenshot, keeps its sensitivity but not its label unless the labeling system detects the content or inherits the label, and label-driven tools then treat it as unclassified. The remedies are labels that follow content (automatic, content-based labeling or label inheritance) and training people to label what they create.
Geofencing, data location and data placement
Geofencing is about where the device requesting the data is; data location and data placement are about where the data itself is stored.
| Concept | Question it answers | Example |
|---|---|---|
| Geofencing | Where is the user's device right now, and should access be allowed from there? | A banking app declines to approve transfers when the device reports a position outside the regions the account allows |
| Data location | In which country, region or jurisdiction does the data physically reside? | A contract requires European customers' records to be held only in data centers within the EU |
| Data placement | Which systems, network segments or storage tiers may hold the data? | Source code may live only in the engineering repository and build servers, never in chat, email or shared drives |
CompTIA lists data location and data placement separately without defining them, so this lesson uses the distinction above: location is geographic and legal (it ties into data sovereignty, covered with architecture considerations in objective 3.1), while placement is architectural, a decision about which systems are allowed to store a class of data. A rule that names a country or region is about location; a rule that names segments, servers or device types is about placement. Neither is about how long data is kept (retention) or how it is labeled.
The data management life cycle and legal holds
The data management life cycle follows data from creation to disposal, and each stage is a point where a different control applies.
| Stage | What happens | Controls that belong here |
|---|---|---|
| Creation | Data is collected, generated or received | Classify and label at creation; collect only what is needed |
| Management | Data is stored and used day to day | Access control, encryption, monitoring, backups and keeping labels current as data changes |
| Distribution | Data is shared inside or outside the organization | Sharing through access-controlled portals, link expiry, rights management, filtering, encryption in transit |
| Retention | Data is kept for a defined period for business, legal or regulatory reasons | A retention schedule stating how long each record type is kept and why |
| Disposal | Data is destroyed when retention ends | Secure deletion, media sanitization and destruction, with records of what was destroyed |
A failure often surfaces at a later stage than where it happened. Disposal can destroy only the copies the organization still controls; if copies were sent out freely earlier, they survive however carefully the internal copies are destroyed. The root cause then lies at distribution, where sharing methods that create uncontrolled copies should have been replaced by ones that can be revoked or expire. Retention sets how long data is kept; disposal is the act of destroying it afterwards. (Sanitization methods and certificates of destruction are covered with asset management in objective 4.2; retention requirements and legal hold also appear under compliance in objective 5.4.)
Legal holds
A legal hold (litigation hold) requires the organization to preserve data relevant to actual or reasonably anticipated litigation, unchanged, and it suspends routine disposal for that data until the legal department lifts it. It overrides the retention schedule, and it binds every process that could destroy or alter the held data, not only the schedule itself:
- Scheduled deletion and automated purge jobs must exclude held data.
- Re-imaging, reassigning or retiring a device must not wipe held data stored on it.
- Backup media that hold relevant data must be withdrawn from rotation and overwriting.
The duty to preserve can begin as soon as litigation is reasonably anticipated, which may come before any notice is sent; it applies at the latest from the moment the hold is issued, not from some later step such as a court order.
Data compliance categories and standards
Data compliance categories group data by the rules that govern it, and the category decides which obligations apply on top of general security practice.
| Category | Examples | Example obligations |
|---|---|---|
| Health data | Lab results, medical imaging, insurance claims for care | Health-specific law such as HIPAA in the US, on top of general privacy law |
| Personal information | Names, contact details, identifiers, voice recordings of a person | Privacy laws such as GDPR: lawful basis, data subject rights, controller and processor duties |
| Financial data | Payment card data, loan applications, account balances | PCI DSS for cardholder data; financial-sector regulation |
| Child/minor data | Personal data of children | Extra protections such as verifiable parental consent (for example, COPPA in the US for children under 13) |
| Intellectual property | Designs, source code, trade secrets, formulas | Contractual confidentiality, trade-secret protection, rights management |
| Legal data | Attorney-client privileged communications, contracts under dispute, evidence gathered for an investigation | Privilege, preservation and legal holds |
Many records fit more than one category, so choose the one that most directly drives the obligation in question. Almost every category above also contains personal information, but the more specific category is usually the one whose rules create the requirement: health-specific rules for medical records, child-protection rules when the people described are children, privilege and preservation for material gathered for a case.
Standards versus laws
A standard is a set of requirements an organization adopts or is bound to by contract, while a law is imposed by a government. PCI DSS is a standard, maintained by the PCI Security Standards Council and enforced by the card brands through the agreements that let a business accept or process cards. Its obligations flow from those agreements, so it applies to every entity that stores, processes or transmits cardholder data whatever the local law says, and it sits alongside privacy law rather than being one.
Tip. Objective 3.3 is a summarize objective, so most items describe a situation and ask which data type, state, classification, method, role, handling concept, life cycle stage or compliance category it shows. Short items give a definition or a one-line example of the term. Scenario items describe what a person does, or what must remain possible after data is protected, and the options are sibling terms from the same list: four roles, four securing methods, four classifications. Harder items combine two or three requirements, such as recoverable for one service but useless if stolen, linkable but not identifiable, or protected both on a lost laptop and on a copied USB drive, so only one option satisfies all of them. Cryptographic algorithms, salting and key management belong to objective 1.3, data sovereignty as an architecture factor to 3.1, DLP tools and media sanitization to Domain 4, and the compliance side of retention, legal hold and controller versus processor also to objective 5.4.
- Data type (structured or unstructured) and data state (at rest, in transit, in use) are independent; field-based controls such as column encryption cannot reach unstructured documents, recordings and images.
- Full-disk encryption protects only against offline access to a powered-off drive; storage and transport encryption do nothing for data in use, which needs isolated processing such as a secure enclave.
- Government levels rank by damage: confidential (damage), secret (serious), top secret (exceptionally grave). Critical data is about availability and integrity, so even public data can be critical; sensitive is commonly used for PII, PHI and intellectual property.
- Hash what you only verify, encrypt what you must restore, tokenize what systems must reference without holding, and mask what people should see only in part.
- In vault-based tokenization a random token has no mathematical link to the original and maps back only through an isolated vault, which is why it shrinks PCI DSS scope where encryption generally does not.
- Pseudonymized data can be re-identified and is still personal data; anonymized data cannot. Filtering leaves a field out entirely, unlike masking or tokenization.
- The owner decides classification and access, the custodian implements controls, the steward keeps data accurate and labeled, the operator works with it; a processor needs the controller's authorization to engage a subprocessor.
- Geofencing reacts to where the device is; data location is the country where data is stored; data placement is which systems may hold it.
- Labels protect only the copy that carries them; people need visible markings and tools need metadata labels.
- A legal hold suspends every routine disposal process for relevant data, including leaver procedures and backup rotation, from the moment it is issued.
Frequently asked questions
What are the three data states in CompTIA Security+?
The three data states are data at rest (stored on disks, databases, backups or removable media), data in transit (moving across a network) and data in use (being processed in memory or by the CPU). Each needs its own control: storage encryption for data at rest, protocols such as TLS or IPsec for data in transit, and isolated processing such as secure enclaves or confidential computing for data in use, because data must be decrypted to be processed.
What is the difference between tokenization and encryption?
Encryption transforms data with a key, so anyone who obtains the key can reverse the ciphertext. Vault-based tokenization, the model Security+ describes, replaces the data with a randomly generated token that has no mathematical relationship to the original; only a lookup in an isolated token vault maps it back. Stolen tokens therefore reveal nothing, and systems holding only such tokens can fall outside PCI DSS scope, whereas systems holding encrypted card numbers generally stay in scope. Cryptographic tokens made with format-preserving encryption are the exception: they keep a mathematical link and stay in scope.
What is the difference between anonymization and pseudonymization?
Anonymization removes or generalizes identifiers so records can never be linked back to a person, and truly anonymous data is no longer personal data under laws such as GDPR. Pseudonymization replaces identifiers with pseudonyms while a separately held mapping can restore identity, so the data is still personal data. Pseudonymization lets records about the same person be linked, for example in long-term research, while hiding who the person is.
What is the difference between a data owner and a data custodian?
The data owner is the business leader accountable for a data set who decides how it is classified and who may access it. The data custodian, usually IT staff such as a database administrator, implements and operates the controls the owner chooses: the technical safeguards, storage and recovery that keep the data protected day to day. The owner decides; the custodian carries out the decisions.
What is a data subprocessor?
A data subprocessor is a third party engaged by a data processor to help process personal data on behalf of the data controller, such as the cloud provider that hosts a survey platform used by a university. Under GDPR Article 28(2), a processor may not engage a subprocessor without the controller's prior specific or general written authorization.
What is the difference between static and dynamic data masking?
Dynamic masking changes only what users see at display or query time, for example showing part of an email address or identifier, while the original value stays stored unchanged. Static masking permanently rewrites the values in a copy of the data, such as a training or analytics data set, with realistic substitutes and keeps no mapping, so the copy contains no real values. Use dynamic masking for limited display and static masking for data copies that leave production.
How does a legal hold affect data retention and disposal?
A legal hold requires an organization to preserve data relevant to actual or reasonably anticipated litigation and suspends routine disposal of that data until the hold is lifted, even if the retention schedule says it is due for deletion. It binds every process that could destroy the data, such as automated purges, device re-imaging and backup media rotation, and it applies at the latest from the moment the hold is issued (the duty can start earlier, once litigation is reasonably anticipated).
Is PCI DSS a law?
No. PCI DSS is a security standard maintained by the PCI Security Standards Council and enforced contractually by the payment card brands through merchant and service provider agreements. It applies to any organization that stores, processes or transmits cardholder data because of those agreements, not because of a statute.
Source
This lesson covers the "Security Architecture" domain of the official SY0-801 exam guide. Vendors revise their guides — check the source for the current version.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.