Security
An application must remove names and postal addresses from English customer messages before storing them for analytics. Which approach should the developer use?
Show the answer
Correct answerB. Use Amazon Comprehend DetectPiiEntities and redact the returned spans.
AWhy not this: SecureString protects stored parameter values but does not identify or remove PII in messages.
BWhy this is right: PII entity detection returns locations of sensitive text that the application can redact.
CWhy not this: Sentiment detection identifies emotional tone, not names or postal addresses.
DWhy not this: Encryption does not remove PII; authorized analytics processing would still receive the sensitive content.
DetectPiiEntities identifies PII and returns offsets that the application can use to redact sensitive text before storage. Encrypting messages protects confidentiality but does not remove PII from the content used for analytics.