Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1SHA-256 hash of file = stored hash | ALimiting who can change records so unauthorised users cannot alter or corrupt the data | |
| 2Edit permission: Payroll Officers only | BGiving every staff member edit access lets unauthorised people change or corrupt data, so the integrity criterion is not met. | |
| 3A checksum lets a system detect that data was corrupted or changed during storage or transfer | CChecking that a file has not been altered, because any change to the data would produce a different hash value | |
| 4An audit trail supports integrity by recording who changed a record and when, so unauthorised edits can be found | DIF calculated_checksum != original_checksum THEN flag_file_as_changed | |
| 5Strategy: all staff can edit the customer database. Integrity criterion: met. | EEncryption mainly protects confidentiality. It does not detect tampering or limit who can edit, so integrity is not shown to be met. | |
| 6Strategy: encrypt files so nobody can read them. Integrity criterion: fully met. | FLOG: user=jsmith, action=EDIT, record=4521, time=14:02 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
integrity criterion — Judging a security strategy by whether it stops unauthorised people changing or corrupting data, using tamper detection, hashes and checksums, and limits on who can edit.digest = hashlib.sha256(data).hexdigest()if newHash == savedHash:
print("Data is unchanged")GRANT SELECT ON results TO viewer;REVOKE UPDATE ON results FROM intern;IF checksum(file) != storedSum THEN
ALERT("Possible tampering")
END IF