CCPA vs GDPR for Test Data: What Each Requires in Non-Production

CCPA/CPRA vs GDPR for test and staging data: how each law treats personal data in non-production, with citations to GDPR articles and California code.

By FakeName Editorial TeamPublished June 25, 2026Last updated June 26, 20269 min read

Engineering and compliance teams keep hitting the same wall: a feature ships, QA needs realistic data, and someone clones the production database into staging. That copy carries the same personal data the law protects in production, and two of the most consequential privacy regimes, the EU's GDPR and California's CCPA/CPRA, both reach into that copy. They do not reach in the same way. This article compares what each law requires for personal data in non-production, cites the specific articles and code sections, and shows where fictional test data removes the problem entirely.

What is the core difference between CCPA and GDPR for test data?

GDPR and CCPA both regulate personal data in test and staging, but GDPR applies a consent-and-lawful-basis model to any identifiable EU person, while CCPA applies a notice-and-rights model to California consumers and households. GDPR has no production-only exemption; CCPA covers the same data in non-production copies, which makes the two regimes overlap heavily in practice.

The shared insight for teams is that neither law cares whether a database is labeled "prod" or "staging." GDPR scope is set by Article 2 (material scope) and Article 4 (definitions), and a staging row about a real EU resident is as protected as a production row [gdpr-art4]. CCPA scope follows the data, not the environment, under Cal. Civ. Code 1798.140 [ccpa-1798140], and the California Attorney General frames the law as covering personal information wherever a covered business holds it [ccpa-oag]. The divergence shows up in definitions, the anonymization bar, and the penalty math.

DimensionGDPR (EU)CCPA / CPRA (California)
Governing textRegulation (EU) 2016/679; Art. 2, 4, 5, 32, 33, 83Cal. Civ. Code 1798.100 to 1798.199.100 (CPRA amendments)
Who is protectedAny identified or identifiable natural person (data subject)California consumers and households
What is regulatedProcessing of personal data, any environmentCollection, use, sale, sharing of personal information
Test/staging scopeFull scope; no production-only carve-outFull scope; security duty extends to all copies
Anonymization standardIrreversible; out of scope per Recital 26Deidentified data still partly regulated (1798.140(m))
Lawful basis neededYes, one of six under Art. 6No lawful-basis requirement; notice and opt-out model
Max administrative fine20M euros or 4% global turnover (Art. 83(5))7,500 USD per intentional violation (1798.155)
Private right of actionCompensation under Art. 82Statutory damages for certain breaches (1798.150)
GDPR vs CCPA/CPRA: side-by-side on the dimensions that matter for non-production data

What counts as personal data under GDPR vs personal information under CCPA?

Under GDPR Article 4(1), personal data is any information relating to an identified or identifiable natural person, directly or indirectly, by reference to identifiers like a name, ID number, location data, or online identifier. CCPA 1798.140(v) defines personal information as information that identifies, relates to, describes, or could reasonably be linked with a consumer or household, which sweeps in inferences and household-level signals.

The CCPA definition is notable for two extensions GDPR handles differently: it explicitly names households and inferences drawn to create a profile. GDPR reaches inferences through its broad "relating to" language and treats household data as personal where it can be tied to an individual, but California wrote both into the statute. The table below maps common test-data fields to each definition.

Field in a test recordGDPR personal data? (Art. 4)CCPA personal information? (1798.140(v))
Full nameYes, direct identifierYes, explicitly listed
Email or account loginYes, online identifierYes, explicitly listed
IP addressYes, online identifier (Recital 30)Yes, listed as network identifier
Device or advertising IDYes, online identifierYes, unique persistent identifier
GeolocationYes, location dataYes, geolocation data
Health or biometric dataYes, special category (Art. 9)Yes, sensitive personal information (1798.140(ae))
Inferred profile / preferencesYes, relating to the personYes, inferences explicitly covered
Household-level usage signalYes, where linkable to an individualYes, household explicitly covered
Fully synthetic name + reserved IDNo, no identifiable personNo, cannot be linked to a consumer
What counts as personal data: common test-data fields under each law

How do GDPR anonymization and CCPA deidentification differ for staging data?

GDPR anonymization is a high bar: under Recital 26, data is anonymous only when a person can no longer be identified by all means reasonably likely to be used, and anonymous data falls entirely outside GDPR [gdpr-recital26]. CCPA/CPRA deidentification under 1798.140(m) is a lower bar: data that cannot reasonably be linked to a consumer, supported by technical safeguards and a contractual ban on re-identification. National standards bodies treat re-identification risk as a measurable property rather than a binary, which is why irreversibility, not relabeling, is the test that holds up [nist-deid].

Why pseudonymized test data still counts under GDPR

Pseudonymization, defined in GDPR Article 4(5), replaces identifiers but keeps a key that can re-link the data. Pseudonymized data remains personal data and stays fully in scope [gdpr-art4]. A staging database where names are swapped for tokens, but a mapping table exists somewhere, is pseudonymized, not anonymized, and every GDPR obligation continues to apply. The deeper treatment of true irreversibility lives in our companion piece at /blog/synthetic-data-gdpr-anonymization.

Why CCPA deidentified data still carries duties

Even when data meets the 1798.140(m) deidentification standard, the business must maintain the safeguards, publicly commit to keeping the data deidentified, and contractually prohibit re-identification by recipients. Deidentified data is not fully exempt the way GDPR-anonymous data is; it is conditionally relieved of certain obligations as long as the safeguards hold [ccpa-1798140].

TreatmentGDPR effectCCPA/CPRA effectReversible?
Pseudonymization (token + key)Still personal data (Art. 4(5))Still personal informationYes, with the key
Deidentification (1798.140(m))Often still personal dataConditionally relieved with safeguardsPossibly; banned by contract
Anonymization (Recital 26)Out of scope entirelyTreated as deidentified or aggregateNo, by definition
Synthetic / fictional dataNot personal data; no subjectNot personal information; no consumerNo real person to re-identify
Anonymization and deidentification standards compared
The principles of data protection should not apply to anonymous information, namely information which does not relate to an identified or identifiable natural person or to personal data rendered anonymous in such a manner that the data subject is not or no longer identifiable.
GDPR Recital 26

What are the penalties for mishandling test data under each law?

GDPR penalties for personal data exposed in staging reach up to 20 million euros or 4 percent of worldwide annual turnover, whichever is higher, under Article 83(5) [gdpr-art83]. CCPA/CPRA administrative penalties run to 2,500 USD per violation or 7,500 USD per intentional violation under 1798.155, plus a private right of action with statutory damages of 100 to 750 USD per consumer per breach under 1798.150 [ccpa-1798150].

The penalty structures reward different behaviors. GDPR's turnover-linked cap means a large enterprise faces existential numbers from one mishandled staging dump. California's per-violation and per-consumer math scales with the number of records, so a non-production copy of millions of consumers multiplies fast. Regulators have signaled that non-production data is squarely in scope: the California Privacy Protection Agency began enforcement under CPRA following the rulemaking that took effect in 2023 [cppa].

Penalty typeGDPRCCPA / CPRA
Top administrative fine20M euros or 4% global turnover (Art. 83(5))7,500 USD per intentional violation (1798.155)
Lower-tier fine10M euros or 2% turnover (Art. 83(4))2,500 USD per unintentional violation (1798.155)
Per-consumer statutory damagesCompensation for damage (Art. 82)100 to 750 USD per consumer, per incident (1798.150)
Cure periodNone codifiedRemoved by CPRA; 1798.155 enforcement applies
Trigger relevant to stagingInsufficient security (Art. 32)Failure to maintain reasonable security (1798.150)
Penalty exposure for a non-production personal-data incident

What compliance actions reduce risk in non-production environments?

The most reliable control is to never load real personal data into non-production at all: generate fictional records that satisfy both GDPR Article 4 and CCPA 1798.140(v) by describing no identifiable person. Where real data is unavoidable, apply GDPR-grade irreversible anonymization, restrict access under Article 32, and document a lawful basis and retention limit for every copy.

  1. Default to synthetic data. Provision test and staging from generated records using reserved, never-issued, and sandbox value ranges so no row maps to a real person under either definition.
  2. Engineer to the stricter bar. Build for GDPR irreversible anonymization (Recital 26); meeting it also clears the CCPA deidentification standard (1798.140(m)).
  3. Minimize and scope. If production data must be subset, copy only the fields a test actually needs, satisfying GDPR data minimization (Art. 5(1)(c)).
  4. Lock down access and logging. Apply Article 32 security controls to staging identically to production, including encryption and access logging.
  5. Document basis and retention. Record a lawful basis (Art. 6) and a deletion schedule for every non-production copy that holds real personal data.
  6. Map your obligations once. Maintain a register that tags each environment against GDPR and CCPA scope so audits and breach reviews are fast.
ActionGDPR hookCCPA/CPRA hookRemoves data from scope?
Use fully synthetic test dataArt. 4 (no data subject)1798.140(v) (no consumer link)Yes, both
Irreversible anonymizationRecital 261798.140(m) / aggregateYes under GDPR; conditional CCPA
Pseudonymization onlyArt. 4(5)Still personal informationNo
Data minimization / subsettingArt. 5(1)(c)Purpose limitation (1798.100(c))No, reduces volume
Encryption + access controlArt. 32Reasonable security (1798.150)No, reduces breach risk
Documented retention limitArt. 5(1)(e)Storage limitation (1798.100(a)(3))No
Compliance actions for non-production, mapped to legal hooks

For US companies serving EU users, the practical answer to "which law" is both, engineered to the stricter one. A California business with EU customers must satisfy CCPA for California consumers and GDPR for EU data subjects simultaneously. Designing non-production data to GDPR's irreversible standard, or skipping real data altogether with synthetic records, collapses two compliance problems into one engineering decision.

References & sources

  1. GDPR Article 4: Definitions (personal data, pseudonymisation)gdpr-info.eu
  2. GDPR Recital 26: Not applicable to anonymous datagdpr-info.eu
  3. GDPR Article 83: General conditions for imposing administrative finesgdpr-info.eu
  4. California Civil Code 1798.140: Definitions (personal information, deidentified)California Legislative Information
  5. California Civil Code 1798.150: Personal information security breaches and private right of actionCalifornia Legislative Information
  6. California Consumer Privacy Act (CCPA) overview and enforcementCalifornia Office of the Attorney General
  7. California Privacy Protection Agency: CPRA regulations and enforcementCalifornia Privacy Protection Agency
  8. NIST IR 8053: De-Identification of Personal InformationNational Institute of Standards and Technology

Frequently asked questions

Does GDPR apply to data in test and staging environments?+

Yes. GDPR makes no distinction between production and non-production. If a test or staging environment contains personal data of an identifiable natural person, all GDPR obligations apply under Article 2 and Article 4, including lawful basis, security under Article 32, and breach notification under Article 33.

Does CCPA cover personal information copied into test environments?+

Yes. The CCPA, as amended by CPRA, applies to personal information wherever a covered business holds it. Cal. Civ. Code 1798.140(v) defines personal information broadly, and the security duty in 1798.150(a) extends to non-production copies, which are a common source of breaches.

What is the difference between GDPR anonymization and CCPA deidentification?+

GDPR anonymization (Recital 26) requires that re-identification be impossible by all means reasonably likely to be used, removing the data from GDPR scope entirely. CCPA/CPRA deidentification (1798.140(m)) permits a lower bar: data that cannot reasonably be linked to a person, backed by technical safeguards and contractual commitments, but it remains partly regulated.

Are penalties under CCPA and GDPR different for test-data breaches?+

Yes. GDPR fines reach up to 20 million euros or 4 percent of global annual turnover (Art. 83). CCPA imposes administrative penalties up to 2,500 USD per violation, or 7,500 USD per intentional violation or violation involving a minor (1798.155), plus statutory damages of 100 to 750 USD per consumer for certain breaches (1798.150).

Can synthetic or fictional data make a test environment compliant under both laws?+

Largely, yes. Synthetic data that describes no real, identifiable person is outside the definition of personal data under GDPR Art. 4 and personal information under CCPA 1798.140(v). Generators that use reserved, never-issued, and sandbox value ranges produce records that cannot link back to a living individual.

Which law should a US company with EU users follow for test data?+

Both, when applicable. A California business serving EU residents must satisfy CCPA/CPRA for California consumers and GDPR for EU data subjects. The practical path is to engineer test data to the stricter standard, which is GDPR irreversible anonymization, so a single control satisfies both regimes.

We use cookies for analytics and ads to keep this generator free. See our Privacy Policy.