Data Engineering · Module 17
Governance, privacy and security
- Lessons
- 10
- Free
- 0
- Reading
- ~3 h
Your progress
0 / 10 lessons done
Sign in to trackLessons
- Data governance: ownership and accountabilityEvery cleanup, schema change, access request and deletion on a data platform starts with one question: whose data is this? Without a clear answer, every decision becomes a guess or a meeting.
- Access control: roles, rows and columnsEvery data team starts with one shared role that can read everything. The day someone asks who can see customers’ phone numbers, you need roles, row rules and column rules that answer it, and files nobody can read around them.
- AI agents as data users: safe warehouse accessAn AI agent turns a question in chat into SQL nobody reviews, and sends the results to a model outside your company. Give it a pipeline’s login and it inherits everything that login can read, change and spend.
- Personal data: masking and anonymizationRemoving names and phone numbers feels like removing the person. It isn’t: a city, a timestamp and an amount can point to one customer, and a stable id then hands over everything else they did.
- Privacy law for data teams: GDPR and India’s DPDP ActPrivacy law is written for lawyers but carried out by pipelines. When a customer asks for her data or a file leaks, the law sets the deadline and the data team decides whether it can be met.
- Retention and deletion requests across a data platformA deletion request is a promise that a person’s data is gone. On a data platform every table keeps old versions, every stream keeps days of events, and every export is another copy, so the promise holds only if retention and deletion are designed into each one.
- Case: Spotify’s deletion by deleting encryption keysFinding and rewriting every copy of one person’s data gets harder with every new table and job. Deleting a key instead moves the problem to one service, which then sits on the path of every read and write of personal data.
- Encryption and secrets in data pipelinesA data platform copies every customer’s data through a dozen systems, and each copy and each connection is a place it can leak. Encryption decides who can read the bytes; secrets decide who can ask for them. Both must change without stopping the reports the business runs on.
- Auditing and compliance reportingSooner or later an auditor, a regulator or a customer asks who could see some data, who did, and whether a deletion really happened. A platform that can answer from logs nobody could edit passes in a week; one that can’t has to guess.
- Design: a deletion request across every systemA deletion request reaches every system that ever received a copy, including systems run by other companies. Without one record of who must act, what each did and when the bytes are gone, nobody can say the request is finished, and a forgotten copy turns up months later.
Practise with
No tools or paper guides for this module yet.
Terms this module teaches 58
Open glossaryAccess review
A periodic check of who holds access to sensitive data, through which path, since when, and whether they still need it.
Access role
A role that holds privileges on one set of objects, such as read access to a schema, and is granted to other roles rather than to people.
Anonymization
Changing data so no one can reasonably link it back to a person, even using other data they hold.
AWS CloudTrail
The AWS service that records API calls made in an account: who called what, on which resource, and when.
CloudTrail data event
A CloudTrail record of an operation on data inside a resource, such as reading or writing an S3 object. Off by default and charged extra.
Consent record
A timestamped record of each time a person gave or withdrew consent for a purpose, with the notice they saw, kept so the company can prove what it was allowed to do.
copy-on-write (table formats)
A way for a table format to apply deletes and updates by rewriting every data file that holds an affected row, so readers never have to merge changes.
Customer-managed key
An encryption key the customer creates and controls in its own key service, used by a cloud product to protect the customer’s data; revoking it makes that data unreadable.
Data controller
Under GDPR, the organisation that decides why and how personal data is processed, and answers for that processing. The DPDP Act calls it the data fiduciary.
Data council
A small group of data owners and leads that writes the shared rules for data and settles the cases owners can’t, without approving routine changes.
Data governance
How an organization decides who owns each dataset, who may use it, what it means and when it changes or goes away, and how those decisions are made and recorded.
Data masking
Hiding part of a value, either in a stored copy (static) or at read time for people without permission (dynamic).
Data minimisation
Keeping personal data to what each purpose needs: fewer fields collected, fewer copies made, kept for less time and reachable by fewer people.
Data owner
The team, with a named lead, accountable for a dataset: what it means, who may use it and when it is retired.
Data processor (GDPR)
Under GDPR, an organisation that processes personal data on behalf of a controller.
Data steward
A person who does the daily care of a dataset on its owner’s behalf: descriptions, glossary terms and first answers to questions about it.
Data subject
Under GDPR, the identified or identifiable person the personal data is about. The DPDP Act calls this person the data principal.
delete file (Iceberg)
A small file in an Iceberg table that marks rows in data files as deleted, so readers skip them without the data files being rewritten.
Delete marker
A placeholder S3 adds when an object in a versioned bucket is deleted without a version id; reads return not found, but older versions remain.
Deletion coverage check
A scheduled check that every dataset or recipient holding personal data has an entry, and a deleter, in the deletion registry.
Deletion ledger
A table that records every deletion request, one task for each system that must act on it, and each task’s state and dates.
deletion request
A person’s request that a company erase the personal data it holds about them, which the company must carry out in every system that keeps a copy.
Deletion task
The part of one deletion request that one system must carry out, with an owner, a state and retries.
Direct identifier
A value that points to one person on its own, such as a name, email address or phone number.
External volume
A Snowflake object that names a cloud storage location and the IAM role Snowflake assumes to read and write Iceberg table files there.
fail fast
Returning an error at once when something goes wrong, instead of waiting or retrying, so the caller can decide what to do.
Fail-safe (Snowflake)
A fixed 7-day period after Time Travel ends in which Snowflake, not the customer, can still recover a table’s historical data.
Functional role
A role that matches a job, built by granting it the access roles that job needs, and granted to the people who do the job.
GDPR
The EU’s General Data Protection Regulation (Regulation (EU) 2016/679): the law on how personal data of people in the EU may be processed, including by companies outside the EU that offer them goods or services.
k-anonymity
A property of a table where every combination of quasi-identifier values appears in at least k rows.
key derivation function
A function that turns one secret key, plus some context, into a new key, so many keys can come from one stored secret.
Key-pair authentication
Signing in by proving you hold a private key whose matching public key the server has stored, instead of sending a password.
Lawful basis
Under GDPR, one of six legal grounds that every processing of personal data needs: consent, contract, legal obligation, vital interests, public task or legitimate interests.
Legitimate interests
A GDPR lawful basis that lets a company process personal data for its own interests unless the person’s rights override them. India’s DPDP Act has no general equivalent.
Log file integrity validation
A CloudTrail feature that delivers hourly signed digest files with a hash of each log file, so any edited or deleted log file can be detected.
LOGIN_HISTORY (Snowflake)
A Snowflake ACCOUNT_USAGE view with one row per sign-in attempt: user, time, client IP, success and the authentication factors used.
Managed access schema
A Snowflake schema where only the schema owner or a role with MANAGE GRANTS can grant access to its objects; the objects’ owners can’t.
merge-on-read
A way for a table format to apply deletes and updates by writing small files that say which rows changed, which readers combine with the data files until a later rewrite.
Noncurrent version (S3)
An older copy of an object in a versioned S3 bucket, kept after the object is overwritten or deleted until a rule or request removes it.
Personal data breach
Accidental or unlawful loss, change, disclosure of or access to personal data. Under both GDPR and the DPDP Act it starts notification duties.
Platform team
The team that runs the shared data tools and enforces the rules as checks, without owning what any dataset means.
Pseudonymization
Replacing direct identifiers with pseudonyms, such as tokens or keyed hashes, so records of the same person still link.
Purge date
The date by which a store’s own retention clocks guarantee that deleted data is gone from every copy it keeps.
Purpose limitation
The rule that personal data is collected for specified, explicit purposes and not later used in a way incompatible with them.
Quasi-identifier
A value that doesn’t identify anyone alone but can single a person out when combined with other values.
Query tag
A short text label attached to every query in a session, saved in the warehouse’s query history so you can tell later which tool, job or person a query came from.
QUERY_HISTORY (Snowflake)
A Snowflake ACCOUNT_USAGE view with one row per query: its text, user, role, tag, status and timings, kept for 365 days.
Re-identification
Linking data that has had names removed back to the person it describes, usually by matching quasi-identifiers with other data.
Records of processing activities
The written record GDPR asks a controller to keep of its processing: purposes, kinds of data and people, recipients, transfers abroad and planned erasure times.
S3 Bucket Key
A short-lived key S3 gets from KMS for a bucket and uses to make object data keys itself, so most reads and writes no longer call KMS.
S3 Object Lock
An S3 setting that stores object versions write-once-read-many until a retention date; in compliance mode nobody, including the root user, can delete them early.
Secret masking
Replacing known secret values with asterisks wherever a tool prints them, such as task logs and the UI; it only catches values the tool knows are secret.
Secrets backend (Airflow)
An external store, such as AWS Secrets Manager, that Airflow reads connections and variables from before it looks in environment variables or its own database.
Service user
A database login for software rather than a person, such as a pipeline or an AI agent. It signs in with a key, not a password, and gets only the role its job needs.
single point of failure
One component whose failure stops the whole system, because everything else depends on it.
snapshot expiration
Removing old snapshots from a table format’s metadata so they can no longer be read, and deleting the data files that only those snapshots used.
SSE-KMS
Server-side encryption in Amazon S3 where each object’s data key is protected by a key in AWS KMS, so reading the object needs permission on that key as well as on the bucket.
Tokenization (data)
Replacing a sensitive value with a random token and keeping the pair in a separate vault, so only the vault holder can get the value back.