Home / Learn Secure SQL / Data Minimization

Data Minimization

Not collecting or storing what you do not actually need.

In shortNot collecting or storing what you do not actually need.

What's actually going on

A question worth asking for every fielddo we need this fieldat all?no: do not collect orstore ityes: apply theappropriate…
A question worth asking for every field

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
ExampleA minimization question
Full date of birthWould just an age range suffice?
Full card numberCan a payment processor token replace it entirely (previous lesson)?
Precise GPS locationWould a city-level location suffice for this feature?

Quick quiz

1. Data minimization is best summarized as...