6.2 SecurityPrivacy&DataIntegrity.data_integrity Flashcards
(58 cards)
What is data integrity?
Data integrity refers to the accuracy, completeness, and consistency of data.
How can data integrity be compromised?
- During data entry and data transmission.
- By malicious attacks like malware or hacking.
- Through accidental data loss from hardware issues.
What are two methods used to ensure data integrity?
Validation and verification.
What is validation?
A method used to ensure entered data is reasonable and meets specific input criteria.
What is verification?
A method used to ensure data is correct, using techniques like double entry or visual checks.
What is a check digit?
An additional digit appended to a number to verify if the entered data is error-free.
How is a check digit calculated using Modulo-11?
By applying modulus division by 11 to determine the check digit.
What is a checksum?
A verification method used to detect if data has been altered or corrupted during transfer, calculated from the data block being sent.
What is a parity check?
A method for verifying if data was transferred correctly, using even or odd parity.
What is a parity bit?
An extra bit added at the end of a byte to maintain the correct parity according to the sender/receiver’s protocol.
What is a parity block?
A combination of horizontal and vertical parity checks used on a block of data during transfer.
How can you mitigate risks to data integrity?
- Use validation and verification during data entry.
- Protect systems against malware and hacking.
- Implement regular data back-ups to prevent accidental data loss.
What is a parity byte?
A parity byte is an additional byte sent with transmitted data to enable vertical parity checking, alongside horizontal parity checking.
What is Automatic Repeat Request (ARQ)?
ARQ is a type of verification check used to ensure data is received correctly.
What is an acknowledgement in data transmission?
A message sent to the sender to confirm that data has been received without error.
What is validation?
A method of checking if entered data is reasonable and within given criteria, but it does not confirm if the data is accurate or correct.
Can validation detect accurate data entry mistakes?
No, validation checks if data is reasonable, but it cannot verify its accuracy (e.g., entering age as 62 instead of 26 would pass validation).
What are common types of validation tests?
9
- Type check: Ensures data is of the correct type (e.g., numbers only in numeric fields).
- Range check: Ensures data falls within specified limits.
- Format check: Ensures data matches a required format (e.g., date format).
- Length check: Ensures data has the required number of characters.
- Presence check: Ensures mandatory fields are not left empty.
- Existence check: Ensures referenced data or files actually exist.
- Limit check: Checks either the upper or lower limit (but not both).
- Consistency check: Ensures related fields have logically consistent data.
- Uniqueness check: Ensures entered data is unique (e.g., usernames).
Give an example of a type check validation.
Entering “sk.34” in a price field would fail, but entering “34.50” would pass.
What is a range check, and give an example.
It checks if data falls within set limits. Example: Entering age as “-120” fails; “48” passes.
Provide an example of a format check validation.
Entering a date as “12-12-20” fails if the format is “dd/mm/yyyy”, while “12/12/2020” passes.
What is a length check with an example?
It verifies if data meets required length. Example: A phone number “012 345 678” fails if 11 digits are needed, while “012 345 678 90” passes.
What is a presence check with an example?
Ensures required fields are filled. Example: Leaving a passport number field empty fails, while “AB 1234567 CD” passes.
What is an existence check with an example?
Verifies if data or a file exists. Example: Searching for non-existent car registration “A123BCD” fails, while finding “books_in_stock” in a database passes.