Security, privacy and data integrity
Cambridge AS & A Level Computer Science 9618 · Paper 1 · Unit 6
Paper 1 · Unit 6. Protecting data and systems, threats, validation and verification.
1. Security, privacy and integrity
| Term | Meaning |
|---|---|
| Data security | Protecting data from loss, damage or unauthorised access |
| Data privacy | Keeping personal data confidential and used only for agreed purposes (protected by data protection laws) |
| Data integrity | Making sure data is accurate, complete and consistent |
Security is needed for both data and computer systems, because threats can corrupt, steal or destroy data and stop systems working.
2. Security measures
| Measure | How it protects |
|---|---|
| User accounts and passwords | Only authorised users can log in; access rights limit what each user can do |
| Biometrics | Fingerprints, face or iris recognition are unique and hard to copy |
| Firewall | Monitors incoming and outgoing traffic and blocks traffic that breaks the rules |
| Anti-virus / anti-spyware | Detects and removes malware |
| Encryption | Scrambles data so it is meaningless without the key |
| Digital signatures and certificates | Confirm the sender and that data has not been altered |
| Back-ups | A copy can be restored if data is lost or corrupted |
| Disk mirroring (RAID) | Data is written to two disks at once, so one can fail without data loss |
3. Threats
| Threat | Description |
|---|---|
| Malware: virus | Attaches to files and replicates when they run; can delete or corrupt data |
| Malware: worm | Replicates itself across a network without user action |
| Malware: spyware | Secretly records activity, e.g. keystrokes, and sends it to a third party |
| Hacking | Gaining unauthorised access to a system |
| Phishing | Fake emails or messages trick users into giving personal details |
| Pharming | Malicious code redirects users to a fake website even if they type the correct URL |
Preventing threats: firewalls, anti-malware, strong passwords, keeping software updated, user training, checking URLs and certificates, and not opening suspicious attachments.
4. Validation and verification
Validation checks that data is sensible and follows rules; it cannot prove the data is correct. Verification checks that data has been entered or transferred accurately.
| Validation check | Example |
|---|---|
| Range check | Age between 0 and 120 |
| Format check | A date in the form DD/MM/YYYY |
| Length check | A password at least 8 characters long |
| Presence check | A required field is not empty |
| Existence check | The product code exists in the database |
| Limit check | Only one boundary, e.g. quantity ≥ 1 |
| Check digit | An extra digit calculated from the others, e.g. ISBN, detects input errors |
| Verification method | How |
|---|---|
| Double entry | Data is entered twice and the two versions are compared |
| Visual check | The user compares the entered data with the original |
| Parity check | An extra bit makes the number of 1s even (or odd); a mismatch shows an error |
| Checksum | A value calculated from a block of data is sent with it and recalculated on arrival |
| Parity block | Parity bits for each byte and each column identify the exact bit in error |
Try it: parity bit and check digit
5. Examiner tips
- Validation vs verification: validation checks reasonableness, verification checks accuracy of copying.
- A parity check cannot detect an even number of bit errors.
- Phishing needs the user to act; pharming redirects without them noticing.
- Firewall: say it filters traffic using rules, not just “blocks hackers”.
- Name the check and give an example relevant to the scenario.
6. Practice questions
Practice: answer and check instantly
Type a short answer, then press Check or Enter.
Show answer
A worm.
Show answer
Pharming.
Show answer
A presence check.
Show answer
Double entry.
Show answer
Four 1s, already even.
Show answer
Four 1s, so add 1 to make it odd.
Show answer
Encryption.
Show answer
A range check.
Exam-style questions
9. Explain the difference between validation and verification, giving an example of each. [4]
Show mark guide
Validation checks data is reasonable / follows rules [1] e.g. range check [1] · verification checks data has been entered/copied accurately [1] e.g. double entry or visual check [1].
10. Describe how a parity block can identify which bit has been corrupted. [3]
Show mark guide
A parity bit is added to each byte (row) [1] · a parity byte is added for each column [1] · the row and column that both fail the parity check meet at the corrupted bit, which can be flipped to correct it [1].
7. Topic test: predict your grade
Topic test: predict your grade
15 questions, about 10 minutes. Answer them all, then press Mark my test.
Frequently asked questions
What is the difference between validation and verification?
Validation checks that data is reasonable and follows rules, such as a range or format check. Verification checks that data has been entered or transferred accurately, such as double entry or a parity check.
How does a parity block detect which bit is wrong?
Each byte has a parity bit and each column has a parity bit. The row and the column that both fail the check cross at the corrupted bit, which can then be corrected.
What is the difference between a virus and a worm?
A virus attaches to a host file and replicates when the file runs. A worm replicates itself across a network without needing a host file or user action.