Skill 3.2.3
Create privacy-focused AI systems to protect user privacy while maintaining FM utility and effectiveness (for example, by using data masking techniques, Amazon Comprehend PII detection, anonymization strategies for sensitive information, Amazon Bedrock guardrails)
Key Concepts
Masking replaces values with a placeholder such as [NAME]; tokenisation or pseudonymisation replaces each value with a consistent token that can be mapped back by an authorised service, so the model can still reason about "customer A" and "customer B"; generalisation replaces exact values with ranges, such as age bands; anonymisation removes the ability to re-identify entirely.
A typical flow detects PII with Comprehend, replaces it with reversible tokens stored in an encrypted mapping table, sends the tokenised text to the model, then restores values in the response only for authorised users. Guardrails provide a final check that masks any PII that slips through in either direction.