Home / Learn Secure SQL / Data Minimization
Data Minimization
Not collecting or storing what you do not actually need.
What's actually going on
In plain terms
Data minimization means deliberately choosing to not collect or store a piece of data at all, if your application does not genuinely need it for its function — the simplest, most complete protection for data is to never have it.
Why we use it
Every field stored is something that must be protected, encrypted, audited, and eventually deleted correctly; data you never collected cannot leak, regardless of how good your other controls are.
Under the hood
For every field in a new schema, ask whether the application genuinely needs it, for how long, and whether a less sensitive alternative would do (a truncated/masked version, an aggregate instead of raw detail).
Real-world use
- Web application code review
- Backend development
- Database administration
| Example | A minimization question |
|---|---|
| Full date of birth | Would just an age range suffice? |
| Full card number | Can a payment processor token replace it entirely (previous lesson)? |
| Precise GPS location | Would a city-level location suffice for this feature? |
Quick quiz
1. Data minimization is best summarized as...
The strongest protection: never having the data.