SaveMyCert
Log in
5 of 5 free questions left today·for 30 a day
Security Architecture

CompTIA Security+ SY0-801 Data Protection: States, Classifications, Methods and Roles

21 min readSY0-801 · Security ArchitectureUpdated

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.

What you’ll learn
  • 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

StateWhat it meansTypical controlsWhat those controls do not cover
Data at restStored on media: disks, databases, backups, log files, removable drivesFull-disk, volume, file or database/column encryption; access permissionsThe same data once it is copied over a network or loaded into memory
Data in transitMoving across a network: browser to server, server to server, a VPN tunnelTLS, IPsec/VPNs, SSH, SFTPThe copy that lands on disk at either end
Data in useBeing processed in memory or by the CPU, where it must be decrypted to be worked onIsolated processing: secure enclaves, confidential computing; access control on the processNothing 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)

LevelUnauthorized disclosure could reasonably be expected to cause
Top secretExceptionally grave damage to national security
SecretSerious damage to national security
ConfidentialDamage 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.

MethodWhat it doesCan the original be recovered?Fits when
HashingA one-way function turns the value into a fixed-length digestNo; you can only hash a candidate and compareYou need to verify (integrity checks, checking a presented secret) but never to read the value again
EncryptionA key transforms the value into ciphertextYes, by anyone holding the keyThe data must be restored or read later: backups, stored files, transmissions
TokenizationReplaces the value with a substitute token; in the vault-based model a random token maps back only through an isolated vaultOnly through the vault (or, for cryptographic tokens, the key)Systems must store and pass a reference to the value without holding the value itself
MaskingHides all or part of the value, such as showing only the last characters of an identifierDynamic masking: the original is still stored. Static masking: the copy holds substitutes and the original is gone from itPeople 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

AnonymizationPseudonymization
What happens to identifiersRemoved or generalized so no one can link records back to a personReplaced with a pseudonym; the link to the person is kept separately
Reversible?NoYes, by whoever holds the mapping or key
Still personal data under GDPR?No; truly anonymous data falls outside itYes, 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 notYes, 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.

RoleResponsibilityTypical holder
Data ownerAccountable for the data; decides its classification and who may access itA senior business leader, such as the head of HR for personnel records
Data custodianImplements and runs the controls the owner sets: permissions, backups, encryption, storageIT staff, a database or system administrator
Data stewardData quality and meaning: field definitions, metadata, data-quality rules and the metadata that keeps each field's meaning and label consistentA data analyst or business data specialist
Data operatorCreates, updates and uses the data in daily work, within the access granted by othersFront-line staff such as claims handlers or sales representatives working in a business application
Data controllerDecides why and how personal data is processed, and answers for that legallyThe organization whose customers or employees the data describes
Data processor / subprocessorA processor handles personal data on the controller's behalf; a subprocessor is a further party the processor engagesA 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 copyControl that addresses itLimit
Device lost or stolen while powered offFull-disk encryptionProtects only what is on that device's own drive
File copied elsewhere: removable media, personal cloud sync, an email attachmentEndpoint DLP or removable-media control to block the copy; file-level encryption or rights management to protect the file wherever it goesFull-disk encryption does not travel with a copied file
Device used where it cannot reach the networkControls enforced locally on the file or deviceControls 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.

ConceptQuestion it answersExample
GeofencingWhere 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 locationIn 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 placementWhich 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.

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.

CategoryExamplesExample obligations
Health dataLab results, medical imaging, insurance claims for careHealth-specific law such as HIPAA in the US, on top of general privacy law
Personal informationNames, contact details, identifiers, voice recordings of a personPrivacy laws such as GDPR: lawful basis, data subject rights, controller and processor duties
Financial dataPayment card data, loan applications, account balancesPCI DSS for cardholder data; financial-sector regulation
Child/minor dataPersonal data of childrenExtra protections such as verifiable parental consent (for example, COPPA in the US for children under 13)
Intellectual propertyDesigns, source code, trade secrets, formulasContractual confidentiality, trade-secret protection, rights management
Legal dataAttorney-client privileged communications, contracts under dispute, evidence gathered for an investigationPrivilege, 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.

Key takeaways
  • 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.

Test yourself on this topic
Practice now

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?