Security+ SY0-701 practice question 9 of 35

Which of the following data protection strategies can be used to confirm file integrity?

Full set: 923 questions
Answer options
A: Masking
B: Encryption
C: Hashing Correct answer
D: Obfuscation
Correct Answer:
C. Hashing
Explanation

Hashing is a cryptographic function that generates a unique, fixed-length string (a hash or digest) from a given input file or data set. If the file is altered in any way, even by a single bit, the resulting hash will be completely different. By comparing a pre-calculated, trusted hash of a file with a newly generated hash of the same file, one can definitively confirm whether the file's integrity has been maintained.

Why Incorrect

A. Masking obscures data to protect confidentiality by replacing sensitive information with non-sensitive placeholders, but it does not verify integrity.
B. Encryption transforms data into an unreadable format to ensure confidentiality. While some modes provide integrity, its primary purpose is not integrity verification.
D. Obfuscation makes data or code difficult for humans to understand. It is a security-through-obscurity technique and does not provide a mathematical guarantee of integrity.

References

1. National Institute of Standards and Technology (NIST). (2015). Secure Hash Standard (SHS) (FIPS PUB 180-4). Section 1, "A hash algorithm is used to detect whether or not data has been modified (i.e., to determine the integrity of the data)."

2. Katz, J., & Lindell, Y. (2014). Introduction to Modern Cryptography (2nd ed.). CRC Press. Chapter 5, "Hash Functions and Applications," details the use of hash functions for integrity verification.

3. MIT OpenCourseWare. (6.857 Network and Computer Security, Spring 2014). Lecture notes on "Hashing" describe its fundamental properties, including collision resistance and its primary use case for data integrity checks.

Question breakdown

Tests
Data protection methods – hashing for integrity
Difficulty
Easy

Key idea: A cryptographic hash produces a fixed digest that changes completely if the input changes, so comparing digests verifies integrity.

How to reach the answer

  1. The key word is 'integrity,' meaning detecting unauthorized change.
  2. Map each method to a CIA goal: masking, encryption and obfuscation all serve confidentiality.
  3. Only hashing yields a value that can be recomputed and compared to a trusted baseline.
  4. Select hashing.

Each option

  • AIncorrect. Masking replaces or hides sensitive values for confidentiality and provides no way to detect tampering.
  • BIncorrect. Encryption alone protects confidentiality, and modified ciphertext is not inherently detected unless an authenticated mode or MAC is added.
  • CCorrect. Comparing a file's current hash with a known-good hash confirms whether the file has changed.
  • DIncorrect. Obfuscation makes data or code hard to understand but cannot verify that it is unaltered.

Common trap: Encryption is tempting because it is the best-known cryptographic control, but on its own it provides confidentiality, not integrity verification.

In practice: Admins check SHA-256 checksums of downloaded ISOs and patches, and file integrity monitoring tools hash system files to detect tampering.

Remember: Integrity means hashing, while confidentiality means encryption, masking or obfuscation.

Drafted with AI assistance and checked against the answer key.

Keep practicing

Take the free Security+ SY0-701 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other Security+ SY0-701 practice questions

Scroll to Top