What is the best approach to guarantee GDPR compliance when storing data in BigQuery?

Quick Overview

Asks how to store personal data in BigQuery so the setup meets GDPR, from finding personal columns to access control, erasure requests, retention and audit logs. Tests whether a data practitioner can turn legal principles into concrete warehouse controls and a repeatable process.

What is the best approach to guarantee GDPR compliance when storing data in BigQuery?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What is the best approach to guarantee GDPR compliance when storing data in BigQuery? Assume the warehouse holds personal data about EU users, such as emails, device IDs and event histories. ```hint Start from the regulation List the GDPR principles and data subject rights first, then name the BigQuery feature or the process that covers each one. ``` ```hint Deletion is harder than it looks Think about every place a row can still exist after you run a `DELETE` on the main table. ``` ### Clarifying Questions to Ask - Which teams need raw personal data, and which only need aggregates or pseudonymous IDs? - Does company policy require the data to stay in the EU, or only to meet GDPR transfer rules? - How is data loaded (batch files, streaming), and where is it copied afterwards (snapshots, exports, BI tools)? ### What a Strong Answer Covers - Finding and classifying personal data before any control is applied - Restricting access at the column and row level, including masking - Handling erasure and rectification across every copy of the data - Retention limits, dataset location and key management - Audit evidence and the documented process that surrounds the technical controls ### Follow-up Questions - A user asks to be deleted, and their rows are spread across 200 tables and several snapshots. How do you make erasure complete and repeatable? - How would crypto-shredding work in BigQuery, and what does it cost at query time? - Is pseudonymized data still personal data under GDPR, and how does that affect your design? - How would you answer a subject access request that must return everything you hold about one person?

Overview: Asks how to store personal data in BigQuery so the setup meets GDPR, from finding personal columns to access control, erasure requests, retention and audit logs. Tests whether a data practitioner can turn legal principles into concrete warehouse controls and a repeatable process.

PracHub logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

What is the best approach to guarantee GDPR compliance when storing data in BigQuery? Assume the warehouse holds personal data about EU users, such as emails, device IDs and event histories.

Clarifying Questions to Ask Guidance

  • Which teams need raw personal data, and which only need aggregates or pseudonymous IDs?
  • Does company policy require the data to stay in the EU, or only to meet GDPR transfer rules?
  • How is data loaded (batch files, streaming), and where is it copied afterwards (snapshots, exports, BI tools)?

What a Strong Answer Covers Guidance

  • Finding and classifying personal data before any control is applied
  • Restricting access at the column and row level, including masking
  • Handling erasure and rectification across every copy of the data
  • Retention limits, dataset location and key management
  • Audit evidence and the documented process that surrounds the technical controls

Follow-up Questions Guidance

  • A user asks to be deleted, and their rows are spread across 200 tables and several snapshots. How do you make erasure complete and repeatable?
  • How would crypto-shredding work in BigQuery, and what does it cost at query time?
  • Is pseudonymized data still personal data under GDPR, and how does that affect your design?
  • How would you answer a subject access request that must return everything you hold about one person?