How do you handle PII and data privacy across an ML pipeline on AWS?
Updated Aug 1, 2026
Short answer
Detect and classify PII with Macie or Comprehend, minimise and tokenise at ingestion, enforce column-level access with Lake Formation, encrypt with scoped KMS keys, and design for deletion requests by keeping identifiers separable from features.
Deep explanation
Privacy in ML is harder than in ordinary applications because data is copied into training sets, embedded into model weights, and cached in feature stores — all places a naive deletion process misses.
1. Discover and classify. You cannot protect what you have not found. Amazon Macie scans S3 for PII; Comprehend detects it in free text at ingestion:
```python comprehend = boto3.client("comprehend")…
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro