Skill 3.2.2

Develop privacy-preserving systems to protect sensitive information during FM interactions (for example, by using Amazon Comprehend and Amazon Macie to detect personally identifiable information [PII], Amazon Bedrock native data privacy features, Amazon Bedrock guardrails to filter outputs, Amazon S3 Lifecycle configurations to implement data retention policies)

Key Concepts

Amazon Comprehend detects PII entities such as names, addresses and card numbers in text in real time or in batch, and can redact them. Amazon Macie discovers sensitive data in S3 buckets, which matters before documents are ingested into a knowledge base or used for fine-tuning. Bedrock native privacy features include not using prompts and responses to train base models, not sharing them with model providers, encryption with AWS KMS and storing customisation data in the customer's account.

Guardrails sensitive information filters block or mask PII types and custom regular expressions in inputs and outputs. S3 Lifecycle configurations expire prompt logs, transcripts and temporary files after the retention period, and CloudWatch log groups have retention settings.