CompTIA Security+ SY0-701 · Security Architecture · easy

A hospital replaces the first 12 digits of patient credit card numbers on printed receipts with asterisks (---4829) while the payment gateway replaces stored PANs in the merchant database with randomly generated non-mathematical reference values mapped in a secure vault. Which two techniques are being used, respectively?

Published · Last updated · checked before publication — how we verify questions

Options

  • AAsymmetric encryption on receipts and salted hashing in the database
  • BSteganography on receipts and homomorphic encryption in the database
  • CTokenization on receipts and symmetric AES encryption in the database
  • DData masking on printed receipts and tokenization in the databaseCorrect answer

Answer: D. Data masking on printed receipts and tokenization in the database

Redacting characters with asterisks (* or X) while leaving the last 4 digits visible for display is Data Masking. Replacing a sensitive PAN with a randomly generated surrogate value linked only via a protected lookup vault (with no mathematical relationship to the original PAN) is Tokenization.

Why the other options are wrong

  • A. Asymmetric encryption on receipts and salted hashing in the database — Hashing is one-way and cannot be detokenized via a lookup vault for recurring payment processing.
  • B. Steganography on receipts and homomorphic encryption in the database — Steganography hides data inside media files, not on printed payment receipts.
  • C. Tokenization on receipts and symmetric AES encryption in the database — Replacing visible digits with asterisks for display is Data Masking, whereas vault surrogates are Tokenization.

All Security Architecture questions and the topic overview →

CompTIA and Security+ are trademarks of the Computing Technology Industry Association. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by CompTIA.