Concept
Secure data engineering
Four habits for the data behind an AI system: check quality, protect privacy, limit access, keep it intact.
Data quality
Complete, accurate, current and free of duplicates.
Privacy protection
Remove or hide personal details with privacy-enhancing technologies.
Access control
Each person and system sees only the data it needs.
Data integrity
Data is not changed by mistake or by an attacker.
Masking
- What it does
- Hides part of a value
- Example
- Card number shown as ****1234
Anonymization
- What it does
- Removes identifying details for good
- Example
- Names deleted from records
Tokenization
- What it does
- Swaps a value for a token
- Example
- Customer ID replaced by a random token
Differential privacy
- What it does
- Adds noise so no person stands out
- Example
- Group statistics without individuals
| Technique | What it does | Example |
|---|---|---|
| Masking | Hides part of a value | Card number shown as ****1234 |
| Anonymization | Removes identifying details for good | Names deleted from records |
| Tokenization | Swaps a value for a token | Customer ID replaced by a random token |
| Differential privacy | Adds noise so no person stands out | Group statistics without individuals |
1 / 2
Masking
- What it does
- Hides part of a value
- Example
- Card number shown as ****1234
Anonymization
- What it does
- Removes identifying details for good
- Example
- Names deleted from records
Tokenization
- What it does
- Swaps a value for a token
- Example
- Customer ID replaced by a random token
| Technique | What it does | Example |
|---|---|---|
| Masking | Hides part of a value | Card number shown as ****1234 |
| Anonymization | Removes identifying details for good | Names deleted from records |
| Tokenization | Swaps a value for a token | Customer ID replaced by a random token |
2 / 2
Differential privacy
- What it does
- Adds noise so no person stands out
- Example
- Group statistics without individuals
| Technique | What it does | Example |
|---|---|---|
| Differential privacy | Adds noise so no person stands out | Group statistics without individuals |
What it is
A model is only as safe as its data. Secure data engineering means preparing and handling data so it is accurate, private, access-controlled and unaltered. You do not need to build pipelines for the exam. You need to know the four goals.
Assess data quality: check that data is complete, accurate, current and free of duplicates before it is used. Privacy-enhancing technologies reduce the personal information in data: masking, anonymization, tokenization and encryption. Data access control gives each person and system only the data it needs. Data integrity means data has not been changed by accident or by an attacker, which also guards against data poisoning.
What it is
AWS tools help with each goal. Amazon Macie finds sensitive data, IAM controls access, AWS KMS encrypts, and AWS CloudTrail records who touched what.
Remember
- Data quality: complete, accurate, current, no duplicates. Bad data gives bad models.
- Privacy-enhancing technologies: masking, anonymization, tokenization, encryption.
- Access control: least privilege on datasets, by role.
- Data integrity: data is not altered. Protects against poisoning.
- Find sensitive data first (Amazon Macie), then protect it.
On the exam
- “Replace real names with fake values so data can be used for training” points to masking or anonymization, a privacy-enhancing technology.
- “Make sure nobody tampered with the training data” describes data integrity.
- “Only let the training job read the dataset” describes data access control.
Do not mix it up with
Amazon MacieFinds sensitive data, such as personal information, in Amazon S3 before it ends up in your AI.
- Data lineage and documenting sourcesRecord where data came from and what happened to it, so you can trust, check and cite it.
- Characteristics of good datasetsA model learns from its data, so the data must include everyone, vary enough, come from good sources and be balanced.