Data Security and Integrity Management
From the IT EXAM curriculum
TL;DR
Data security protects information from unauthorized access, use, disclosure, disruption, modification, or destruction. Data integrity ensures information is accurate, consistent, and trustworthy throughout its lifecycle. Managing both is crucial for reliable IT systems and compliance.
1. The Mental Model
Think of data security as a strong lock on a safe, keeping bad actors out. Data integrity is about making sure what's inside the safe isn't secretly altered or damaged while it's in there.
2. The Core Material
Data security and integrity are two sides of the same coin when it comes to keeping your information safe and reliable.
Data Security: Protecting Your Data

Photo by Markus Winkler on Pexels
Data security focuses on preventing unauthorized access to data. This means only people who should see or use data can, and others can't.
Key principles of data security, often remembered by the CIA Triad:
- Confidentiality: Keeping data secret from unauthorized individuals. Think of encrypting sensitive files so only those with the key can read them.
- Integrity: Ensuring data hasn't been tampered with or altered improperly. This means the data you access is the same data that was stored. We'll dive deeper into this next.
- Availability: Making sure authorized users can access the data when they need it. This involves things like redundant systems and backup strategies to prevent downtime.
Common data security measures include:
- Access Controls: Limiting who can do what with data. This involves user authentication (proving you are who you say you are, like with a password) and authorization (what you're allowed to do once you're authenticated).
- Encryption: Converting data into a coded form to prevent unauthorized access. If someone intercepts encrypted data, it looks like gibberish without the decryption key.
- Firewalls: Network security systems that monitor and control incoming and outgoing network traffic based on predefined security rules. They're like guards at the network perimeter.
- Intrusion Detection/Prevention Systems (IDPS): Tools that monitor networks or systems for malicious activity or policy violations. IDPS can alert administrators or even automatically block suspicious traffic.
- Security Auditing & Logging: Keeping records of who accessed what data, when, and what actions they took. This helps identify breaches and ensures accountability.
Data Integrity: Keeping Your Data Trustworthy

Photo by AlphaTradeZone on Pexels
Data integrity is about maintaining the accuracy and consistency of data over its entire lifecycle. It ensures that the data is not corrupted, altered inappropriately, or inconsistent with other related data.
There are two main types:
- Physical Integrity: Protects data from physical damage or corruption due to hardware failure, power outages, or natural disasters. Think of using RAID arrays (multiple hard drives working together) or regular backups.
- Logical Integrity: Protects data from human error, software bugs, or malicious manipulation. This ensures that the data makes sense within its context and follows predefined rules.
Measures to ensure data integrity:
- Validation: Checking data at the point of entry to ensure it meets certain criteria (e.g., a phone number has 10 digits, an email address has an "@" symbol).
- Backup and Recovery: Creating copies of data that can be restored in case of data loss or corruption.
- Checksums/Hashing: Generating a unique fixed-size string of characters (a hash or checksum) from a block of data. If even a single character in the data changes, the hash changes, indicating tampering.
- Data Redundancy: Storing the same data in multiple places to protect against loss, though this needs careful management to avoid inconsistencies.
- Transaction Management: In databases, ensuring that a series of operations (a transaction) is either fully completed or fully rolled back, preventing partial, inconsistent updates. This is often described by ACID properties: Atomicity, Consistency, Isolation, Durability.
Here's how data integrity and security measures often work together:
graph TD
A["User attempts to access data"] --> B{"Authentication & Authorization Checks?"};
B -- "No" --> C["Access Denied"];
B -- "Yes" --> D["Data Accessed"];
D --> E{"Is Data Encrypted?"};
E -- "Yes" --> F["Decrypt Data (if authorized)"];
E -- "No" --> G["Use Data Directly"];
F --> H["Data in Use"];
G --> H;
H --> I{"Data Modified?"};
I -- "Yes" --> J["Perform Data Validation & Update Checksum/Hash"];
I -- "No" --> K["Data Maintained"];
J --> L["Store Updated Data (Encrypted if necessary)"];
K --> M["Regular Backups & Audits"];
L --> M;
M --> N["Ensures Confidentiality, Integrity, Availability"];
3. Worked Example
Let's say you're managing customer orders for an online store.
Scenario: A customer places an order for 5 items. This order needs to be processed, inventory updated, and a payment taken.
Security:
- Authentication: The customer logs in using a secure password, confirming their identity. The store's employees also log in with strong credentials.
- Authorization: The customer can only see their own orders and update their own profile. A shipping department employee can view all orders but can't change product prices. A finance employee can view payment details but not customer addresses.
- Encryption: When the customer enters credit card details, this information is encrypted before being sent over the internet (HTTPS) and stored in a database (often encrypted at rest). If a hacker intercepted the data, they'd get gibberish.
Integrity:
- Data Validation: When the customer submits the order, the system checks:
- Are there actually 5 items in stock for each item?
- Is the shipping address in a valid format?
- Is the payment amount a positive number?
- Transaction Management (ACID): The entire process of "order placed" (update inventory, charge card, create order record) is treated as a single transaction. If the payment fails, the inventory update is rolled back, and the order isn't created – it's all or nothing (Atomicity). This ensures your inventory count stays Consistent with actual paid orders.
- Hashing: Before storing the order details, the system generates a hash of the order data. Later, if you retrieve the order, you can re-calculate the hash. If the two hashes don't match, you know the order data has been accidentally or maliciously altered.
- Backups: Daily backups of the entire order database are taken and stored securely off-site, so if the main database is corrupted, you can restore a recent version.
By combining these, you ensure that customer orders are handled securely, confidentially, and accurately, preventing fraudulent purchases or incorrect inventory counts.
4. Key Takeaways
- Data security is about preventing unauthorized access and use of data.
- Data integrity is about ensuring data is accurate, consistent, and trustworthy.
- The CIA Triad (Confidentiality, Integrity, Availability) is a fundamental model for data security.
- Encryption and access controls are key security measures.
- Validation, hashing, and transaction management are crucial for data integrity.
- Regular backups and recovery plans support both physical integrity and availability.
Common mistakes to avoid:
- Confusing security with integrity: Thinking that just because data is secure (locked down), it's automatically accurate and hasn't been corrupted.
- Weak access controls: Using simple passwords or giving too many users administrative rights.
- Ignoring data validation: Allowing incorrect or incomplete data into systems, which then spreads inconsistencies.
- Neglecting backups: Not having a robust backup and recovery strategy, leading to irreversible data loss.
5. Now Try It
Imagine you're designing a system for a school to manage student grades. List three specific measures you would implement for data security and three specific measures for data integrity for this system. For each measure, briefly explain why it's important in this context.
What success looks like: You'll have six distinct points (three for security, three for integrity) with clear, concise justifications that directly relate to protecting student grades.
Frequently asked about Data Security and Integrity Management
More from IT EXAM
Get the full IT EXAM curriculum
Clone the complete plan to your dashboard for unlimited AI-generated notes, practice quizzes, and a personalised revision schedule.
Save this course free