If you fail to protect customer data, your company could face massive fines, lawsuits, and total loss of trust. This chapter teaches you the three pillars of data security, privacy, and compliance that every IT professional must understand to pass the CompTIA Data+ DA0-002 exam and keep data safe in the real world.
Jump to a section
A simple way to picture Data Security, Privacy, and Compliance
An estate manager is responsible for a large country house that contains priceless heirlooms and sensitive family documents. Their job is to secure the house so only authorised people can enter, protect the privacy of the family's personal letters, and comply with the law regarding listed buildings and data protection. They install locks on every door (access control), set up an alarm system (intrusion detection), and keep a visitor log (audit trail) to track who enters and when. They also make sure that the family's private correspondence is stored in a locked cabinet (encryption at rest) and that any copies sent by post are sealed (encryption in transit). The estate manager must follow strict rules from the heritage authority about how the building is maintained (compliance) and must prove they are following those rules during regular inspections (audits). If they fail to lock a window, a thief could steal the silver (data breach). If they leave a letter on the desk, a visitor could read private information (privacy violation). If they ignore the heritage rules, the estate could be fined or closed (regulatory penalty). The estate manager's daily routine is a perfect analogy for what an IT professional does with data security, privacy, and compliance: they control who can access what, protect sensitive information from prying eyes, and ensure the organisation follows all relevant laws and standards.
The estate manager's role maps directly to the three pillars of Data+. Security is the locks and alarms — protecting data from unauthorised access and theft. Privacy is the locked cabinet for personal letters — ensuring that sensitive information about individuals is handled according to their consent and the law. Compliance is the heritage authority inspection — proving to regulators that you are following the rules. When these three work together, the estate is safe, the family's secrets stay secret, and the owner avoids fines. When any one fails, everything falls apart.
Data security is the practice of protecting digital information from unauthorised access, corruption, or theft throughout its entire lifecycle. Think of it as a set of controls that keep data safe from the moment it is created until it is securely destroyed. The goal of data security is to ensure three things, often called the CIA triad: confidentiality (only authorised people can see the data), integrity (the data is accurate and hasn't been tampered with), and availability (authorised users can access the data when they need it).
Confidentiality is achieved through methods like encryption (scrambling data so only someone with the correct key can read it), access controls (rules that decide who can view or use data), and authentication (verifying that a user is who they claim to be, for example with a password or fingerprint). Integrity is maintained using checksums (a mathematical value that changes if the data is altered), hashing (a one-way algorithm that creates a unique fingerprint of data), and version control (tracking changes so you can revert to an earlier version if needed). Availability is ensured through backups (copies of data stored separately), redundancy (having multiple systems so if one fails another takes over), and disaster recovery plans (procedures to restore data after a major failure).
Privacy is closely related to security but focuses specifically on how personal data about individuals is collected, stored, processed, and shared. Privacy is about respecting an individual's rights over their own information. In the European Union, the General Data Protection Regulation (GDPR) gives people the right to know what data is held about them, to have that data deleted (the right to erasure, often called the 'right to be forgotten'), and to be told if their data is breached. Privacy also involves concepts like data minimisation (only collecting the data you actually need), purpose limitation (only using data for the reason you collected it), and consent (getting permission from the individual before you use their data). In the United States, different laws cover different types of data. For example, the Health Insurance Portability and Accountability Act (HIPAA) protects medical information, and the California Consumer Privacy Act (CCPA) gives California residents rights over their personal data.
Compliance is the act of following all the laws, regulations, standards, and internal policies that apply to your organisation's data. It is not optional. Compliance involves regularly reviewing your security and privacy practices against requirements, documenting everything you do, and proving to auditors (independent inspectors) that you are following the rules. Common compliance frameworks include the Payment Card Industry Data Security Standard (PCI DSS) for credit card data, the Federal Information Security Management Act (FISMA) for US government agencies, and the SOC 2 framework for service organisations that handle customer data.
Access control is a critical part of all three pillars. There are three main models you need to know for the exam. Discretionary Access Control (DAC) means the owner of a file decides who can access it. Mandatory Access Control (MAC) uses a central authority to assign security labels to data and clearances to users, so only users with the right clearance can access data at a specific classification level. Role-Based Access Control (RBAC) grants permissions based on the user's role in the organisation, like 'manager' or 'analyst', rather than to individual people. RBAC is the most common model in business because it is easier to manage in large organisations. The principle of least privilege is a key concept: you should give users only the minimum access they need to do their job and no more.
Encryption is a fundamental tool for both security and compliance. Encryption uses an algorithm and a secret key to convert plaintext (readable data) into ciphertext (scrambled data). Only someone with the correct decryption key can turn ciphertext back into plaintext. Data can be encrypted at rest (when it is stored on a hard drive, database, or backup tape) and in transit (when it is moving across a network, like when you visit a secure website using HTTPS). Hashing is different from encryption: hashing is a one-way process that creates a fixed-length string of characters from any data. You cannot reverse a hash to get the original data. Hashing is used to verify that data has not been changed, for example by comparing the hash of a downloaded file with the hash published by the software vendor.
Why does this all matter for DA0-002? The exam will test your understanding of these concepts at a functional level. You need to know the difference between a threat (a potential danger), a vulnerability (a weakness), and a risk (the likelihood that a threat will exploit a vulnerability). You need to know the common types of attacks, like phishing (fraudulent emails trying to trick you into revealing information), malware (malicious software like viruses or ransomware), and social engineering (manipulating people into breaking security procedures). You also need to know how to classify data. Data classification is the process of labelling data based on its sensitivity. A common scheme is: public (anyone can see it, like a press release), internal (only employees can see it, like an internal policy), confidential (only specific people can see it, like salary information), and restricted (highly sensitive data that could cause serious harm if leaked, like customer credit card numbers). Understanding data classification helps you apply the right security controls to the right data.
Finally, you need to understand the data lifecycle: create, store, use, share, archive, and destroy. Security and privacy controls should be applied at every stage. For example, when data is created, you should classify it and encrypt it. When it is shared, you should ensure it is sent securely. When it is no longer needed, you should securely delete it using methods like degaussing (using a strong magnetic field to wipe magnetic media) or physical destruction (shredding hard drives). Failing to securely destroy data is a common way that data breaches happen, which is why compliance frameworks almost always include data disposal requirements.
Step 1: Classify the Data
Identify all data in the organisation and label it according to sensitivity (e.g., public, internal, confidential, restricted). This step is essential because it determines which security and privacy controls apply to each piece of data. Without classification, you cannot prioritise protection for the most sensitive information.
Step 2: Implement Access Controls
Set up systems to control who can see and use the data. This typically involves choosing an access control model (like RBAC) and creating user roles and permissions. Enforce the principle of least privilege so that employees only have access to the data they need for their job. This reduces the risk of internal data breaches.
Step 3: Apply Encryption
Encrypt data both at rest (on hard drives, databases, backups) and in transit (across networks, emails, website connections). Use strong encryption algorithms such as AES (Advanced Encryption Standard). This ensures that even if an attacker gains access to the storage or intercepts the data, they cannot read it without the decryption key.
Step 4: Establish Monitoring and Logging
Set up systems to log who accesses what data, when, and from where. Monitor these logs for suspicious activity like repeated failed login attempts or unauthorised access to sensitive files. Logging is crucial for detecting breaches, proving compliance to auditors, and investigating incidents after they occur.
Step 5: Create a Data Retention and Disposal Policy
Define how long different types of data must be kept (based on legal and business requirements) and how they will be securely destroyed when no longer needed. For example, financial records might need to be kept for seven years, while old customer emails can be deleted after one year. Secure disposal methods like degaussing or physical destruction prevent data from being recovered by unauthorised parties.
Step 6: Conduct Regular Audits and Risk Assessments
Periodically review your security and privacy practices to ensure they still meet compliance requirements and address new threats. An audit checklist might include checking that access permissions are up to date, encryption is configured correctly, and logs are being reviewed. A risk assessment identifies any new vulnerabilities and helps you decide where to invest in improvements.
Step 7: Train Employees on Policies
Educate all staff on data security, privacy, and compliance rules. Training should cover topics like recognising phishing emails, handling sensitive data properly, and reporting incidents. Human error is a leading cause of data breaches, so ongoing training is a critical control.
Meet Priya, a data analyst at a mid-sized retail company called ShopSmart. ShopSmart sells clothes online and in physical stores. Priya's job includes handling customer data such as names, addresses, payment details, and purchase history. To pass an upcoming audit for PCI DSS (the standard for handling credit card data), the company needs to prove that it is protecting that data properly. Here is exactly what Priya and her IT team do step by step.
First, Priya's manager holds a meeting to classify all the data the company stores. They agree that customer credit card numbers are 'restricted', customer names and addresses are 'confidential', and product inventory levels are 'internal'. Each category gets different handling rules. For restricted data, encryption is mandatory both at rest and in transit. For confidential data, encryption is required only at rest unless it is being emailed, in which case encryption in transit is also required. For internal data, encryption is recommended but not mandatory. They document these rules in a data classification policy.
Next, the IT team implements Role-Based Access Control (RBAC) across the company's systems. Customer service representatives are given a role that lets them view a customer's name and order history, but not their credit card number. The accounting team gets a role that allows them to view payment amounts but only the last four digits of the credit card number. Only a handful of senior IT staff have a role that lets them see the full card number, and that access is tightly monitored. They also enforce the principle of least privilege. When a new hire joins the customer service team, they are automatically assigned the correct role. When an employee is promoted or leaves the company, their access is changed or revoked immediately.
After the access controls are in place, the team sets up encryption. They enable full-disk encryption on all company laptops using a tool like BitLocker or FileVault, so if a laptop is stolen, the data on it is unreadable. They set up a Virtual Private Network (VPN) so that any employee working from home connects through an encrypted tunnel. For credit card data stored in the database, they use column-level encryption so that even if someone breaks into the database, the card numbers appear as scrambled text. They also configure the company's website to use HTTPS, which encrypts data between the customer's browser and ShopSmart's web server.
Then, Priya and the IT team conduct a risk assessment. They identify potential threats: hackers trying to break into the database, employees accidentally emailing customer data to the wrong person, and a fire in the server room that could destroy all data. For each threat, they decide on a mitigation: they install a firewall and intrusion detection system for hackers, they run mandatory privacy training for all employees, and they set up daily backups to a secure off-site location. They also buy a backup generator to keep servers running during a power outage, ensuring availability.
Finally, the audit happens. An external auditor arrives and asks to see the data classification policy, the access control logs, the encryption configuration, and the risk assessment document. The auditor also tests a few things, such as checking that a terminated employee's account is actually disabled and that a customer's credit card data truly is encrypted in the database. Priya's team passes the audit because they have followed every step of the compliance framework. The auditor writes a report confirming that ShopSmart is PCI DSS compliant, which allows the company to continue accepting credit card payments. Without that compliance, the company could have been fined thousands of dollars per day or banned from processing credit cards altogether. Priya's careful work on data security, privacy, and compliance directly protected the company from financial disaster and legal trouble.
The DA0-002 exam covers data security, privacy, and compliance in domain 5.0, which is worth about 15-20% of the total marks. You will see questions that test your understanding of the core concepts: the CIA triad (confidentiality, integrity, availability), the different access control models (DAC, MAC, RBAC), and the difference between data security and data privacy. Be prepared for scenario-based questions where you have to choose the correct control for a given situation. For example, the exam might describe a company that needs to protect customer credit card data and ask which standard applies (PCI DSS) or which encryption method should be used.
Specific exam topics include:
Types of access control: Discretionary Access Control (DAC), Mandatory Access Control (MAC), Role-Based Access Control (RBAC). Know which is most commonly used in business (RBAC).
The principle of least privilege: giving users only the access they need to do their job.
Data classification levels: public, internal, confidential, restricted. Know examples of each.
Encryption: the difference between encryption at rest and encryption in transit. Know that HTTPS encrypts data in transit.
Hashing vs encryption: hashing is one-way and used for integrity verification; encryption is two-way and used for confidentiality.
Compliance frameworks: PCI DSS (payment card data), HIPAA (health data), GDPR (EU personal data), FISMA (US government data).
Data destruction methods: clearing, purging, degaussing, physical destruction. Know which method is appropriate for different media types.
Common threats: phishing, malware, ransomware, social engineering, insider threats.
The exam loves to set traps by mixing up related terms. A common trap question asks 'Which access control model allows the data owner to decide who can access a file?' The answer is Discretionary Access Control (DAC), not RBAC. Another trap asks 'Which compliance standard applies to a healthcare provider in the United States?' The answer is HIPAA, but they will list other similar acronyms to confuse you. They also love to ask about the 'right to be forgotten', which is a concept from GDPR, not HIPAA or PCI DSS. Always read the scenario carefully to identify the jurisdiction and the type of data involved before picking the correct framework.
You should memorise the following definitions exactly:
Confidentiality: ensuring that data is accessible only to authorised users.
Integrity: ensuring that data is accurate and has not been tampered with.
Availability: ensuring that authorised users can access data when needed.
Data privacy: the proper handling of personal data according to consent and legal requirements.
Data compliance: adhering to laws, regulations, and standards that govern data.
Risk: the likelihood that a threat will exploit a vulnerability.
Threat: a potential danger to data or systems.
Vulnerability: a weakness that could be exploited.
Finally, be ready for questions about the data lifecycle stages: create, store, use, share, archive, destroy. The exam might ask which stage requires a specific control, like encryption when data is being shared or secure destruction when it is being disposed of. Practise with sample questions until you can quickly recognise which concept is being tested. A typical question might say: 'A company needs to ensure that terminated employees no longer have access to the network. Which security principle does this enforce?' The answer is the principle of least privilege or access revocation.
Data security protects confidentiality, integrity, and availability (the CIA triad) of all data, not just personal data.
Data privacy focuses on how personal data is collected, used, and shared, including the right to erasure ('right to be forgotten') under GDPR.
Compliance means following mandatory laws and standards such as GDPR, HIPAA, PCI DSS, and FISMA.
Role-Based Access Control (RBAC) is the most common access control model in business because it simplifies permission management by assigning rights to roles, not individuals.
The principle of least privilege means giving users only the minimum access they need to perform their job, nothing more.
Encryption protects data at rest (stored on a device) and in transit (moving across a network), but the encryption key must also be secured.
Hashing is a one-way function used to verify data integrity, not to keep data secret.
Data classification (public, internal, confidential, restricted) determines what security controls apply to that data.
Data must be securely destroyed at the end of its lifecycle using methods like degaussing or physical shredding.
A risk assessment identifies threats, vulnerabilities, and the likelihood of a breach, and guides the selection of security controls.
These come up on the exam all the time. Here's how to tell them apart.
Data Security
Focuses on protecting all data from unauthorised access and damage.
Uses technical controls like encryption, firewalls, and access controls.
Is primarily concerned with preventing data breaches and ensuring CIA triad.
Data Privacy
Focuses on the proper handling of personal data according to individual rights.
Involves policies for consent, data minimisation, and purpose limitation.
Is primarily concerned with legal and ethical use of personal information.
Encryption
A two-way process that scrambles data; it can be reversed with a key.
Used for protecting confidentiality of data.
Example: encrypting a credit card number so only authorised systems can read it.
Hashing
A one-way process that creates a fixed-length fingerprint; it cannot be reversed.
Used for verifying integrity of data.
Example: hashing a downloaded file to confirm it matches the original publisher's hash.
Role-Based Access Control (RBAC)
Permissions are assigned to roles (e.g., manager, analyst), not individuals.
Easier to manage in large organisations with many users.
Central administration controls the roles and their permissions.
Discretionary Access Control (DAC)
Permissions are set individually by the owner of a file or resource.
More flexible but harder to manage as the organisation grows.
Each data owner decides who can access their data.
GDPR
Applies to any organisation handling personal data of EU residents.
Covers all types of personal data, from names to browsing history.
Includes rights like the right to erasure and the right to data portability.
HIPAA
Applies only to healthcare providers, insurers, and their business associates in the US.
Covers protected health information (PHI) specifically.
Focuses on privacy and security of medical records, not general personal data.
Mistake
Encryption and hashing are basically the same thing, just different names.
Correct
Encryption is a two-way process that allows data to be decrypted back to its original form using a key. Hashing is a one-way process that produces a fixed-length output that cannot be reversed. Hashing is used to verify integrity, not confidentiality.
Both terms involve scrambling data, and beginners often assume they are interchangeable. The exam specifically tests the difference, so this confusion leads to wrong answers.
Mistake
If a company is compliant with a privacy law like GDPR, it automatically means all its data is secure.
Correct
Compliance with a privacy law means the company has met the legal requirements for handling personal data, but compliance does not guarantee comprehensive security. A company can be compliant yet still have security vulnerabilities that lead to a breach.
People think compliance checklists are exhaustive security measures. In reality, compliance is a baseline, not a ceiling. Beginners often confuse 'meeting regulations' with 'being totally safe'.
Mistake
Data privacy and data security are the same thing, just said differently.
Correct
Data security is about protecting data from unauthorised access and damage using controls like encryption and firewalls. Data privacy is about how personal data is collected, used, and shared according to individual rights and laws. You can have strong security but still violate privacy, for example by collecting more data than you have permission for.
The terms overlap in everyday language, so beginners assume they are synonyms. The exam explicitly separates them, and confusing them leads to incorrect answers on scenario questions.
Mistake
Once data is encrypted, you never have to worry about security again.
Correct
Encryption is a powerful tool, but it is not a silver bullet. If an attacker steals the encryption key, they can decrypt the data. Encryption also does not protect against other threats like data being deleted or corrupted. You need multiple layers of security, including access controls, backups, and monitoring.
Encryption sounds like a magic solution, so beginners over-rely on it. The exam expects you to know that encryption is just one part of a defence-in-depth strategy.
Mistake
Role-Based Access Control means every user gets the same access as everyone else in their department.
Correct
RBAC assigns permissions based on a role, but roles should be granular and follow the principle of least privilege. A 'customer service' role might allow viewing names but not credit card numbers. Not everyone in a department should have the same access to everything.
The word 'role' makes people think of broad job titles. Beginners often miss the nuance of granular permissions within a role, which the exam tests with specific scenarios.
Mistake
Compliance frameworks like HIPAA and PCI DSS only apply to large corporations, not small businesses.
Correct
Compliance requirements apply to any organisation that handles the type of data covered by the law or standard, regardless of size. A small dental clinic must comply with HIPAA. A small online store must comply with PCI DSS if it processes credit cards.
Beginners think of regulations as something that only big companies deal with. The exam includes scenarios about small businesses, and this misconception leads to wrong answers about whether compliance is needed.
Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.
Data security is about protecting data from unauthorised access and damage using technical controls like encryption and firewalls. Data privacy is about how personal data is collected, used, and shared according to individual rights and laws. You can have strong security but still violate privacy by collecting data without consent.
The CIA triad stands for Confidentiality (only authorised people can access data), Integrity (data is accurate and unaltered), and Availability (authorised users can access data when needed). These are the three core goals of data security.
The principle of least privilege means giving a user only the minimum access permissions they need to perform their job duties and no more. This reduces the risk of accidental or intentional data breaches by limiting what each person can do.
GDPR is a comprehensive data privacy law in the European Union that gives individuals rights over their personal data, including the right to access, correct, and delete it. It applies to any organisation that handles the personal data of EU residents, regardless of where the organisation is based.
Encryption is a two-way process that scrambles data so it can only be read by someone with the decryption key. Hashing is a one-way process that creates a unique fingerprint of data, and it cannot be reversed. Encryption protects confidentiality; hashing protects integrity.
DAC allows the owner of a file to decide who can access it, giving individual control. RBAC assigns permissions based on a user's role in the organisation (e.g., manager, analyst), which is easier to manage in large companies. The exam tests your ability to choose the right model for a given scenario.
PCI DSS (Payment Card Industry Data Security Standard) is a set of security requirements for organisations that handle credit card data. Any business that accepts, processes, stores, or transmits credit card information must comply, including small online shops and large retailers.
Data at rest is data that is stored on a device like a hard drive, database, or backup tape. Data in transit is data that is actively moving across a network, such as an email being sent or a website being loaded. Both need encryption to be protected, but the methods differ.
You've finished Data Security, Privacy, and Compliance. Continue through the DA0-002 study guide to build a complete picture of the exam.
Done with this chapter?