Support transcripts with customer names and phone numbers will be used to fine-tune a model. What must happen before training?
- Exam domain
- Data Preparation for ML and AI28% of the exam
- Difficulty
- Medium
- In this mock
- 24 questions on this domainPractise this domain
Why the exam asks this
Task 1.2: Perform data transformation, feature engineering, and pre-processing.
Objective in the exam guide: Skill 1.2.8: Mask, redact, and anonymize data.
Models can repeat what they were trained on. Personal data in training sets is a privacy and legal risk that must be removed up front.
Why B is the answer
Mask, redact or anonymize the personal data
A model can memorize training data, so personal data must be removed before training.
Remember: Remove personal data before training, not after.
How it works
Models, especially large ones, can memorize parts of their training data and repeat them later.
Masking, redaction or anonymization removes personal data before training, while keeping the text useful.
Encryption protects stored files but does not stop the model from learning their contents.
Clues in the question
The words that point to the answer, and what each one tells you.
- Names and phone numbers
- Personal data.
- Before training
- Remove it first.
In detail
- Amazon Comprehend can detect PII in text; Macie finds sensitive data in S3.
- Anonymized data keeps its usefulness for learning tone and structure.
Side by side with look-alikes
| Action | Protects personal data in the model? |
|---|---|
| Mask or anonymize first | Yes |
| Encrypt only | No |
| Translate | No |
| Delete after training | Too late |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Train first and delete the data afterwardsWrong
Once trained, the model may already have memorized it.
B. Mask, redact or anonymize the personal dataRight
Remove personal data before training, not after.
C. Encrypt the files and train on them unchangedWrongMost tempting
Encryption protects storage, but the model still learns the personal data.
Why it tempts: Encryption is a strong security control. But training decrypts and learns the content, personal data included.
D. Translate the transcripts to another languageWrong
Translation keeps the personal data.
In practice
- Detect PII with Amazon Comprehend and replace it with placeholders.
- Spot-check a sample by hand before training.
Use case
An illustrative scenario, not a real incident.
A team replaces names and numbers with placeholders such as [NAME] before fine-tuning a support model.
See how it works
flowchart LR T["Transcripts"] --> D["Detect PII"] D --> M["Replace with placeholders"] M --> C["Spot-check"] C --> F["Fine-tune"]
How to read this chart
- Read it in order: Transcripts, then Detect PII, then Replace with placeholders, then Spot-check, then Fine-tune.