Skip to content
Tech Interview Prep
Technical interview guide

Data Governance Fundamentals

Who owns which data, who can access it, and how quality and compliance are enforced across an organization.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: UK Data Ownership Model 2026 and ESDA guidance, NIST Privacy Framework and CSF/RMF, EU GDPR, W3C DCAT 3, OpenLineage, and UK Data and AI Ethics Framework current 2026-08-31.

Interview Q&A

Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.

Curated: · Written: · Reviewed:

25 questions

Q&A-9

How do you distinguish data governance from data management, and why is governance critical to an organization?

Answer

The distinction in one test. Governance is the decision-rights layer: who may decide what about a data asset, under which policy, and who is accountable when it is wrong. Management is the execution layer: the pipelines, schemas, storage, catalogs and monitors that carry those decisions out. If the question is "may we, and who decides?", it is governance. If it is "how do we build and run it?", it is management. The same person can do both: an engineer sitting on a stewardship council is doing governance in that room and engineering outside it.

DimensionGovernanceManagement
FocusDecision rights, policy, risk boundariesPipelines, infrastructure, storage, operations
RolesData owners (business-accountable), stewards, risk/complianceData engineers, DBAs, platform architects
DeliverablesClassification taxonomy, glossary, retention policy, sharing contractsSchema migrations, DAGs, replica-lag monitors, backup runs
StandardsDCAT 3 for catalog interoperability, NIST Privacy Framework controlsOpenLineage run events, SQL DDL, partitioning, index tuning
AuthoritySets access standards, approves exceptionsGrants physical permissions conforming to policy

Trade-offs: governance is a tax, and you pick the rate. Every approval gate adds latency to delivery. A central review board that meets weekly adds up to seven days to a schema change; a tiered model where PII changes need steward sign-off but internal metric changes are self-service with post-hoc audit cuts that to hours for the majority of changes that touch no regulated data. The cost side is real: stewards' time, catalog and lineage tooling, and the engineering hours to instrument pipelines so lineage is not fiction.

Over-governance fails in a specific, measurable way: shadow pipelines. If the approved path takes two weeks, teams copy data into a personal bucket and ship anyway, and you end up with worse lineage than before you started. Detect it by comparing the dataset count in the catalog against the datasets the query engine and lineage collector actually observe: a widening gap is the signal. Under-governance fails the other way: count the distinct definitions of "active customer" across BI tools, or the orphaned service accounts with write access.

How much is enough: tier by data class and blast radius, not by data volume. Regulated or externally shared data gets a named owner, classification, retention schedule and periodic access review. Internal, low-sensitivity data gets an owner and lineage, no pre-approval. Centralize the policy, federate the execution: a central council sets classification and retention standards, domain teams own their assets and self-serve inside those bounds.

Worked trace: an unmasked national ID proposed for a shared analytical view.

[1. Product demand: add national_id to shared view]
        |
        v
[2. Governance check]
    - Steward checks classification (GDPR Art. 6 lawful basis, Art. 9 special category)
    - Tests purpose limitation and proportionality
    - Outcome: raw form rejected; approved only as keyed HMAC-SHA256,
      key held in KMS, restricted to the fraud-analytics role
        |
        v
[3. Management execution]
    - Engineer implements the HMAC transform in the dbt/Spark pipeline
    - OpenLineage emits the dataset facet: schema change + inputs/outputs
    - DBA grants column-level access via RBAC to that role only

What governance buys that management cannot. Liability: an unenforced retention schedule breaches GDPR Art. 5(1)(e) storage limitation, and the ceiling is 4% of global annual turnover or EUR 20M, whichever is higher. Management tools store the bits; only a decision-rights layer limits exposure. Trust: models trained on untracked features inherit whatever bias and drift the source had, and provenance is a governance artifact, not a pipeline one. Interoperability: without owners defining canonical entities, two teams build two customer tables that cannot be reconciled.

The interview-ready summary: management without governance optimizes locally and fails globally, and governance without management is a policy nobody enforces. The engineering judgment is calibrating the tax to the cost of being wrong.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-2

Assign ownership for a shared customer dataset.

Answer

What I'd say first

Before naming anyone, pin down what "shared" means, because it decides the model. Two questions: is there one system of record for the customer record, or several (CRM, billing, support) that each claim authority? And are the consumers inside one legal entity or several? If several, GDPR makes each entity a controller in its own right and you cannot centralize accountability away.

Assuming one system of record (the CRM) and one legal entity: one accountable Data Owner for the source, and a separate named owner for every derived copy. Ownership of the source is not shared. What is shared is the contract.

The model

Three roles with distinct decision rights:

RoleWho (example)DecidesDoes not decide
Data OwnerVP Customer Ops (business side)meaning of customer_id, quality thresholds, who gets access, retentionhow it is stored
Data Stewardanalyst in that team, ~0.5 FTEday-to-day definitions, triaging quality alerts, glossary upkeepgranting access, changing schema
Data Custodianplatform / data-eng teamstorage, encryption, backup, pipeline SLAswhat fields mean, who may read them

Derived copies (dim_customer, the feature store, the marketing export) each get a local owner who inherits the source contract and cannot redefine fields. This is the DAMA-DMBOK owner/steward/custodian split; ISO 8000 is the reference for the quality dimensions. Thresholds live in the contract, not in a wiki: freshness under 15 minutes, completeness of customer_id at 99.5% or better, null rate under 0.1%.

Worked trace: a bad source change

Hypothetical but typical. The CRM team renames customer_id to cust_id in the nightly export.

  • 02:00 ingestion fails the schema check (the contract pins the column name), so the pipeline halts with no partial load.
  • 02:04 the freshness alert on dim_customer fires and routes to the steward, not to platform on-call.
  • The steward confirms the contract violation and pages the Data Owner, who decides: revert, or accept and version the contract.
  • The feature-store consumer is blocked from promoting a model while the upstream contract is marked broken.

The point: the alert reaches the person with authority to decide, and the break is caught at the boundary instead of three hops downstream.

Where this fails

  • Committee ownership. "The data council owns it" means nobody can approve access on a Friday. If you cannot name one person who says yes or no, ownership was not assigned.
  • Platform team as owner. They can enforce but cannot define meaning; you get technically clean data nobody trusts.
  • Steward without authority. A steward who can only report problems becomes a ticket router.
  • Copies drifting. If dim_customer's owner can redefine "active customer", you have two truths and permanent reconciliation work.
  • Rights requests. A GDPR Art. 17 deletion has to reach every copy inside one month; the marketing export with no named owner is where that fails.

When not to use it

Multi-entity groups: each legal entity is its own controller, so keep a federated model. A central steward for shared definitions, but each entity's owner accountable for its own lawful basis and retention. For genuinely co-owned datasets, put the split in a written data-sharing agreement with named contacts on both sides, including exit and licensing terms, rather than in a wiki page.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-1

Design a data governance operating model.

Answer

Core answer

A governance operating model is three things: who decides what about data, how those decisions get made when they conflict, and how the decision is enforced without a human in the loop. Assume 10–20 domains, a cloud warehouse, an auditor you must answer to, and no appetite for a 30-person central team.

So: federate the decisions to domain owners, keep a small central function for policy and platform, and push enforcement into the warehouse so most requests never reach a person.

  1. Decision rights: one accountable owner per domain for the data itself, separate from the platform team that runs the storage.
  2. Cadence: domain stewards meet weekly; a council meets only on cross-domain or high-risk items.
  3. Enforcement: classification tags drive masking and grants, so policy is code, not a ticket queue.

Decision rights

DecisionAccountableClockEscalates to
Classify a new assetDomain steward5 business daysCouncil
Grant masked accessPolicy engine (auto)minutes—
Grant unmasked PIIDomain owner2 business daysPrivacy office
Cross-domain shareCouncil10 business daysCDO
Retention / legal holdRecords + Legalper matterLegal

Each row has exactly one accountable name and a clock. Rows without a clock are where governance dies.

Worked trace: an analyst requests finance.orders for churn analysis.

  1. Catalogue returns: domain Finance, owner VP Finance Ops, tags PII(email, address), retention 7y, certified.
  2. Policy engine matches role analyst_finance + purpose analytics → SELECT on non-PII columns; masking applied to email (SHA-256) and address (nulled). No human.
  3. Request for unmasked PII → domain owner, 2-day clock; no response → privacy office.
  4. Grant is time-boxed to 90 days, logged, re-attested at expiry.

Output: masked columns, a 90-day grant, one audit record. The analyst is working in minutes.

Council sizing (illustrative numbers)

200 access requests/month across 12 domains. Central review at 15 min each is 50 h/month: about 1.25 FTE of pure triage. Route only cross-domain or high-risk items, say 8% = 16 requests = 4 h/month. The threshold is the rule: the council decides only what no single domain can decide. Everything else is a domain decision with a clock.

Trade-offs

Central-only is consistent but its latency grows with request volume, and people route around it. Fully federated is fast but classification drifts between domains. Hybrid, what I'd pick, costs you a policy function plus a platform team that can express tags as code: Snowflake tag-based masking policies, BigQuery policy tags, Unity Catalog column masks. If you have fewer than about five domains, or one regulator-mandated schema, central-only is cheaper and the federation is overhead.

Failure modes

  • Catalogue theatre: assets registered but not wired to access. Detect: share of access grants that reference a certified tag. Below roughly 30%, the catalogue is decorative.
  • Shadow data: pipelines writing tables nobody registered. Detect: monthly diff of information_schema.tables against the catalogue API; over 5% unregistered is a finding.
  • Owner in name only: no time or budget. Detect: median time-to-resolve on quality incidents; if it exceeds the clock in the table, the owner has no capacity.
  • Permanent exceptions: exceptions with no expiry. Detect: count exceptions lacking an expires_at; any is a finding.

What changes the design

If the regulator requires named human approval on every PII access, the auto-grant step disappears and this becomes central-with-SLA. The decision-rights table, the clocks and the tag-based enforcement all survive that change.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-10

Implement a business glossary and catalogue.

Answer

Clarify, then answer. A glossary is the vocabulary: terms, definitions, owners. A catalogue is the inventory: assets, schemas, lineage. They are separate systems with separate lifecycles, and the value lives in the binding between them. Assume a warehouse of a few thousand tables, one or two governance owners, and analysts who currently resolve definitions in Slack.

So: pick the 20–40 tables that answer most questions, define the 100–300 terms those tables need, bind each term to the columns that implement it, and automate everything derivable from the system of record. Do not start with a tool rollout.

Mechanism. A term needs stable identity (a URN, not a name, because names get renamed) plus a definition with scope and exclusions, an owner, and a binding to physical assets. The binding is what makes it operational: when a term is bound to fct_orders.net_revenue, a search for "net revenue" resolves to a column, and a schema change on that column can be routed to the term owner.

Automate the derivable, curate the intended:

MetadataSource of truthAutomation
Table/column names, typesWarehouse information schemaFull sync, hourly
LineageQuery logs, dbt manifestParsed, daily
Freshness, row countsOrchestrator (Airflow, dbt)Pushed on run
PII classificationScanner (name rules + sampling)Suggested, human confirms
Term definitions, boundariesHumansNever auto-generated

Snowflake tags are the cheap version of the binding: CREATE TAG data_class ALLOWED_VALUES 'pii','public'; then ALTER TABLE customers SET TAG data_class='pii';. Tags propagate to columns and are queryable in SNOWFLAKE.ACCOUNT_USAGE.TAG_REFERENCES, so the glossary can be reconciled against reality nightly. BigQuery does the same job for column-level access with policy tags.

Trade-off. Automate versus curate is decided by one question: can a machine derive it from the system of record? If yes, automate: a hand-maintained column description is stale within a quarter. If it requires intent (what counts as an "active customer", where one term ends and another begins) a human owns it and the machine only flags drift.

Lighter-weight wins below roughly 200 tables in a single domain: dbt meta on models and columns plus dbt docs generate gives a searchable catalogue with no new infrastructure. Self-hosting DataHub or OpenMetadata means running Kafka, Elasticsearch and a metadata store alongside your warehouse: worth it once you have multiple engines and cross-domain lineage, not before.

Failure modes.

  • Stale ownership. Detect by joining term owners to the IdP and alerting when the account is deprovisioned or the term is untouched for 180 days. Cost: change requests sit unanswered and teams fork the definition.
  • Term collision. Detect two terms whose synonyms overlap, or one column bound to two terms with different definitions. Cost: two dashboards report different "revenue".
  • Orphan terms. Detect terms with zero bound assets after 90 days. Cost: search returns definitions nobody can act on, and trust drops.
  • Misinterpretation. Detect via searches with no click and definition-dispute tickets. Cost: it is silent, because the wrong number looks plausible.

Worked arithmetic (illustrative). 12,000 tables; 40 of them answer 80% of analyst queries; 300 terms cover those 40. Two stewards at 4 hours a week is 400 hours a year: about 1.3 hours per term, enough to review each term twice, nowhere near enough to hand-write descriptions for 12,000 tables. Automate the 12,000, curate the 300.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-13

How do you define and enforce a data classification policy across an organization?

Answer

The 90-second answer

Assume a cloud data platform, a few regulated data types, and a governance team of two or three, not a bank with a dedicated classification office. Under those constraints I'd define four tiers, map each to a control baseline, and then pick the three points where classification is actually checked. The taxonomy is the easy part; enforcement is where these policies die.

Public is approved for release, integrity only. Internal is default operational data: authenticated access, TLS in transit. Confidential is customer PII, billing records, employee reviews: RBAC, KMS-managed encryption at rest, audit logging. Restricted is cardholder data, credentials, health and biometric records, GDPR Article 9 special categories: ABAC or just-in-time access, column-level envelope encryption, masking, egress blocked. NIST SP 800-53 control families are a reasonable spine for the mapping.

TierEncryption at restAccessEgress
Publicplatform defaultanonymous readopen
Internalprovider default (SSE-S3/GCS)domain authVPN / zero-trust perimeter
ConfidentialAES-256, customer-managed keysRBAC, least privilegeTLS 1.3, proxy inspection
Restrictedfield-level AEAD / tokenizedABAC or JIT with approvalprivate endpoints, IP allowlist

Where the tiers get enforced

  1. Ingest and CI. Classification lives in the schema, not a wiki. dbt meta blocks or Protobuf annotations carry the tag, and the build fails if a new column has none. This is the cheapest enforcement point you will ever get: a failed build costs minutes, a misclassified table costs a breach.
  2. Lineage propagation. Ingest column-level lineage via OpenLineage. A Restricted upstream field inherits downstream to materialized views and tables unless a validated tokenization or hashing step breaks the chain. Without this, classification decays one join at a time.
  3. Runtime. Open Policy Agent, Apache Ranger, or warehouse-native masking policies (Snowflake masking policies, BigQuery policy tags), plus S3 bucket policies and KMS key grants. A query touching a Restricted column gets hashed or redacted unless the principal holds the entitlement.
  4. Discovery as backstop. AWS Macie or Google Cloud Sensitive Data Protection scans buckets with regex and NER. An unclassified bucket containing card numbers alerts the SOC and gets a quarantine IAM policy blocking external reads.

Trade-offs, and when to go lighter

Three tiers beat four if you hold no regulated data: a fourth tier nobody can distinguish from the third just generates arguments. Automated discovery is noisy and expensive; start with manual tagging plus the CI gate and add scanning past a few hundred tables. Hard CI failure works when a platform team owns the pipeline; in a federated org, advisory tagging plus a dashboard of unclassified tables moves faster than a gate you cannot enforce.

Over-classification is the failure I see most. When everything is Restricted, engineers route around the controls: copy to a personal bucket, paste into a ticket. Reserve the top tier for data where exposure costs more than the friction.

Failure modes and detection

Drift: a column tagged Internal starts receiving PII. Detect by diffing scanner output against catalog tags. Lineage gaps: manual exports and spreadsheets break inheritance. Reconcile catalog lineage against actual query history. DLP false positives: NER flags order IDs as card numbers; if analysts ignore most alerts, the control is dead. Stale entitlements: JIT grants that never expire. Audit against last-used.

What would change my answer

Unregulated and small: skip the catalog and policy engine, put classification in the data contract and code review. Regulated enterprise with mature IAM: lean on warehouse-native policy tags instead of bolting on OPA. And if legal cannot agree on what Confidential means, no tooling fixes that: escalate the definition, don't engineer around it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-24

Design governance for data definitions and standards.

Answer

Assumptions. Mid-size data org: ~12 domains, a few thousand tables, dbt on a warehouse, a schema registry for streaming. If you're 30 people, most of this is overkill: one owner and a README beats a forum.

The 60-second answer. Split the two jobs. Meaning, what "active customer" means, belongs to a domain owner accountable for the business definition. Mechanics (writing the glossary entry, linking lineage, chasing the review) belongs to a steward, often one per domain, part-time. A central forum exists only to arbitrate cross-domain terms and own the standard for how terms are written. Everything else is federated, because a central team cannot know 12 domains' semantics and becomes a queue.

Why federated works, and where it breaks. Domain ownership works because the person who can change the pipeline is the person who defines the term: definition and code move together. It breaks when a term spans domains: "revenue" means bookings to finance and recognized revenue to accounting. That's the forum's job, and the deciding criterion is blast radius, how many downstream consumers break if the definition is wrong, not seniority.

Make the glossary executable, not a wiki. A term that lives only in a catalogue rots. Link each term to the artefacts that enforce it: a dbt model with contract: enforced: true (dbt 1.5+), a Great Expectations suite, a schema registry subject set to BACKWARD compatibility. Then a definition change is a code change with a review, not a Slack message.

Worked trace. A producer renames user_id to customer_id on a stream, no Avro alias. Under BACKWARD, the registry rejects the push: the new schema adds customer_id with no default, so it cannot read records written with the old schema. CI fails before deploy. Set the subject to NONE and the same push succeeds; consumers still on the old schema read new records, find no user_id, and either throw or fill null depending on the reader's default handling: surfacing as a null-filled join two days later. Same change, two outcomes, decided by one setting.

Failure modes and how you see them.

FailureDetectionCost
Glossary rot: terms defined once, never revisited% of terms not reviewed in 12 months; owner churnAnalysts stop reading it and go back to Slack archaeology
Contract drift: producer changes nullability or a nameConsumer's contract test fails in CISilent nulls in a revenue number
Exception sprawl: teams file exceptions instead of fixing the standardActive exceptions per standard vs conforming tablesWhen exceptions outnumber conformers, the standard is wrong, not the teams
Forum bottleneckMedian time-to-approve a new term; terms stuck in "proposed"Teams route around governance entirely

Alternatives. A central physical model, one canonical schema for everything, gives consistency but serializes every change through one team. Fine for a regulated reporting layer, wrong for operational domains. Buy a catalogue (Collibra, Alation) versus build on DataHub/OpenMetadata: buy if you need lineage and stewardship workflows out of the box and have budget; build if you already run dbt and want terms as code.

What would change my answer. Regulatory exposure (BCBS 239, SOX) pushes toward central sign-off on definitions in scope. A high change rate pushes toward contracts in CI over review meetings. Under ~50 people, drop the forum and the stewards: one owner per domain plus enforced contracts covers it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-5

Define quality governance for a critical dataset.

Answer

What I'd say first (60–120s). Governance is not a score; it's a contract between each consumer decision and the pipeline that feeds it. So I start by naming the decision, then work backwards to the checks that protect it. Take a payments ledger: one row per settled transaction, keyed by transaction_id, consumed by three decisions. Finance close (needs accuracy), a fraud model (needs freshness), and merchant dashboards (need completeness). Those need different guarantees, so I refuse a single global score. I pick a grain (merchant-day), set a threshold per dimension tied to the decision, name one accountable owner, and define what happens on breach. Everything else (tooling, dashboards) follows from that.

Assumptions I'd state. ~50M rows/day, ~12,000 merchant-days, batch load plus a streaming watermark. If the dataset were an internal analytics table with one consumer and no money movement, most of this collapses to warn-only checks and a weekly review: that's the lighter approach, and it wins whenever a breach costs a re-run rather than a wrong number in a close.

The contract, made concrete.

DimensionDefinitionThresholdMeasuredBreach signal
Completenesssettled rows vs. gateway ack count≥ 99.99% per merchant-daypost-load recon vs. gateway fileany merchant-day below → page on-call
Freshnessnow − max(event_time)p99 ≤ 15 min, hard 60 minstreaming watermarkwatermark stalls > 60 min
Validityamount > 0, currency in ISO-4217 set0 invalid rowspre-loadreject batch
Uniquenesstransaction_id distinct0 dupespre-loaddedupe + alert
Accuracyledger sum vs. bank settlement±0.01% dailydaily reconfinance close blocked

Why per-merchant-day, not global. 50M rows at 99.95% aggregate completeness is 25,000 missing rows. If they sit in one merchant that has 25,000 rows, that merchant is 100% missing while the aggregate passes. A global threshold hides exactly the failure that matters. This is the single most common governance mistake: averaging a severe element into a healthy mean.

Trade-offs and where to check. Pre-load validity and uniqueness are cheap and blocking: a bad row never lands. Accuracy recon is downstream and can't block, so it's advisory-but-loud: it gates the finance close, not the write. Incremental partition checks beat full recompute at this volume; reserve a full scan for schema changes. Blocking gates cost latency and can stall a backfill, so I only block where a bad write is expensive to undo.

Failure modes and detection.

  • Freshness passes while a partition is missing: max(event_time) looks current because a late partition wrote old timestamps. Detect with per-partition row count vs. expected, not just the watermark.
  • Backfill overwrites good rows: detect via row-count delta and lineage diff before promoting.
  • Threshold drift: the fraud model's freshness need tightens but the threshold doesn't move. Tie a quarterly review to the consumer decision, not the calendar.

Ownership and response. One accountable owner per dataset; producers remediate at source, stewards triage. Failed records are quarantined with lineage, never silently dropped. Waivers are explicit and time-boxed: a waiver with no expiry is just an unowned breach.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-21

Respond when no owner can be found for a critical dataset.

Answer

What I'd say first (60–120 seconds)

Clarify one thing before acting: is the owner missing from the catalogue, or is there genuinely no accountable person? Those are different problems. If the catalogue field is stale but a team still operates the pipeline, I have a metadata bug. If nobody will accept accountability, I have a governance incident on a tier-1 asset.

Assumption I'd state out loud: this dataset feeds revenue reporting or a regulatory return, and it carries PII or financial data. Under that assumption I'd do three things in the first week: name an interim accountable owner, freeze the changes that create new risk, and start a time-boxed reconstruction of what the dataset is and who depends on it.

The first week

Day 0–1, triage. Pull the lineage graph from the catalogue (Collibra, Alation and Apache Atlas all expose downstream lineage), list consuming services, read the classification tag, and check when the last access review ran. Output is a one-page risk note: sensitivity, downstream count, last review date, current custodians.

Day 1–3, escalate to the data governance council or the CDO and ask for an interim Data Owner: accountable, not just a contact. The interim owner should be the most senior leader of the largest consuming domain, with a written 90-day mandate and a named Data Steward doing the day-to-day work. Without a mandate and a budget line, the interim owner is a name in a field.

Day 1–5, freeze. Block new access grants and breaking schema changes; allow break-fix. The deciding criteria: freeze if the dataset is regulated (PII/PCI/PHI) or has more than a handful of downstream consumers; do not freeze a path a live incident depends on. Instead require a named approver per change.

Days 5–90

Reconstruct purpose, definitions, retention, lineage and contractual obligations with consumers and source teams. Then assign permanent ownership to a domain, update the catalogue, and add the owner to the access-review cycle and the on-call rotation.

PhaseActionAccountableExit criteria
Day 0–1Lineage, classification, last reviewInterim Data StewardRisk note signed
Day 1–3Appoint interim Data OwnerGovernance council / CDOWritten 90-day mandate
Day 1–5Freeze new grants, breaking schema changesData OwnerFreeze register published
Day 5–90Reconstruct definitions, retention, obligationsInterim owner + consumersCatalogue fields complete
Day 90Permanent domain owner assignedDomain leadOwner in review cycle and on-call

Detection is a scheduled check for assets whose owner is null or points to a disabled account. Illustrative against a catalogue asset table:

SQL
SELECT asset_id, owner_id
FROM catalog.assets
WHERE criticality = 'tier1'
  AND (owner_id IS NULL
       OR owner_id IN (SELECT id FROM hr.accounts WHERE status = 'disabled'));

Failure modes

  • Freeze too broad: a downstream pipeline breaks. Detect via change-failure alerts and blocked deploys; cost is an incident and eroded trust in governance.
  • Interim owner without mandate: nothing changes. Detect by checking whether the access review completed within 30 days.
  • Orphan recurs: reorgs, departures, migrations. Detect with the weekly query above; cost is silent access accumulation.

Trade-off: waiting for the "right" owner versus appointing an interim one. Waiting is defensible only if the dataset is low-risk and read-only; for a critical asset, an imperfect owner with a mandate beats a perfect owner in three months.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-3

Prioritize data assets for governance rollout.

Answer

What I'd say first

"Prioritize" only means something once the constraint is fixed. Assume two data engineers, one steward, a catalog of ~4,000 tables, and a 12-month horizon: that funds real governance work on roughly 120 assets. The job is choosing which 120. I'd rank on blast radius and legal exposure, not size, and I'd expect the ranking to disagree with the storage bill.

The model

Six criteria, weighted to 100, each rated 0–5 by the owner and cross-checked against catalog lineage and incident history. Score = Σ weight × rating, max 500.

CriterionWeightRated on
Regulatory / contractual exposure25GDPR, HIPAA, PCI DSS, SOX duty; customer contracts
Blast radius20downstream services, models, reports, from lineage
Sensitivity15PII / PHI / cardholder fields present
Uniqueness15system of record vs reconstructible elsewhere
Availability impact15revenue or safety if it goes dark
Quality history10incidents and failed checks, last 12 months

Tier 1 ≥ 350: full lifecycle now. Tier 2 200–349: owner, metadata, access review this quarter. Tier 3 < 200: registered, revisited on trigger.

Worked example (hypothetical figures)

AssetRegBlastSensUniqAvailQualScoreTier
billing.customer_pii (40 GB)5554434501
lake.clickstream_events (9 TB)1322242152
media.thumbnails (60 TB)010112703

Arithmetic for the first row: 25×5 + 20×5 + 15×5 + 15×4 + 15×4 + 10×3 = 125 + 100 + 75 + 60 + 60 + 30 = 450. The 9 TB clickstream table scores 215 and the 60 TB thumbnail store 70: size ranks both of them above the 40 GB table that carries the GDPR and cardholder exposure.

Trade-offs against other approaches

Ranking by table size is cheap and tracks storage cost, but it puts the two largest assets first and the regulated one third. Ranking by revenue attribution catches the assets on the P&L and misses HR data and log tables that carry PII without earning anything. Governing everything at once is the third option and it is the one that fails: 4,000 tables against a three-person team is not a plan. Weighted scoring is overhead when the estate is small or a single regulation drives everything: under ~200 assets, or with one regulator, just enumerate the regulated assets and start.

Failure modes and how I'd catch them

  • Score inflation. Owners rate their own assets 5s to get attention. Detect by comparing self-ratings to objective signals, lineage fan-out and 12-month incident count, and flagging any asset where the self-rating beats the signal by ≥2 points.
  • Stale scores. Blast radius changes the day a new consumer subscribes. Re-score on lineage-change events, not on a calendar.
  • Tier 1 declared governed with no evidence. Owner named, access review never run. Audit quarterly that every tier-1 asset has a completed access review and a passing quality check, and report the percentage.
  • Governance taxing delivery. If median time-to-access for tier-1 data exceeds the pre-rollout baseline, the rollout is slowing the business and the access path needs work before more assets are onboarded.

Sequencing

Start with the tier-1 shared assets and take each through a thin but complete lifecycle: owner, metadata, one quality check, access review, retention rule, lineage, incident path. Tier 3 means "not yet assessed", never "safe": promotion triggers are a new consumer, a new regulation, or an incident. Recalibrate the weights after the first quarter, when the incidents and the dependency discovery tell you which criterion you under-weighted.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-22

Test data governance before production rollout.

Answer

Assumptions. "Production rollout" means a new pipeline or data product and its consumers going live, with governance controls already designed and signed off. I have read access to the catalogue, the warehouse, and the IAM console. Internal-only consumers can ship earlier; anything touching regulated data is gated.

Core answer. Test the control, not the document. A signed policy proves intent; it does not prove the masking policy is attached, that a deletion propagates, or that the third-party copy is gone. So sample by risk tier, run the real control journeys end to end, and gate the rollout on the journeys that touch regulated data.

Sample by tier, not uniformly.

TierContentsSampleGate
T1 regulatedPII, PHI, paymentevery asset (or all if <30)blocking
T2 confidential / third-partycontracts, vendor feeds20–30 assetsblocking for external share
T3 internal / public / derivedaggregates, dashboards~10 spot checksadvisory

On a 400-asset estate with 12 T1 assets, that is ~37 assets: under 10% of the estate, ~100% of regulated data. (Illustrative numbers.)

Worked trace: a deletion request for subject S.

  1. Ticket lands in the DSAR queue. Resolve S to 3 subject keys via the identity table.
  2. Pull lineage from the source table in the catalogue: s3://raw/events → snowflake.raw.events → dbt model fct_events → reverse-ETL sync to Braze.
  3. Delete in Snowflake, then SELECT COUNT(*) → 0. But Time Travel retains the row for 1 day by default (up to 90 on Enterprise), so "deleted" is soft for 24h: record that as a residual.
  4. The S3 object is immutable; the partition must be rewritten or aged out by lifecycle. Check whether the ingest job re-creates it on the next run.
  5. fct_events is incremental and not delete-aware: a source delete does not propagate until the model is rebuilt. Run the next scheduled build and re-count.
  6. Delete the Braze profile via API; capture the response.
  7. Evidence: before/after row counts, the lineage snapshot, the Braze response, and the residual list.

Trade-offs. Full-population verification is the only way to be certain, and it is unaffordable at estate scale: tiered sampling buys coverage of regulated data at roughly 10% of the cost, and accepts that a T3 copy can be missed. Blocking the whole rollout is safest; conditional rollout (internal consumers ship, external share blocked until T1 passes) is usually the right call because it keeps the schedule while holding the line that matters.

Failure modes and how you catch them.

  • Stale lineage → deletion misses a copy. Detect by diffing catalogue lineage against Snowflake ACCESS_HISTORY for the last 30 days; any table read by a job that is not in lineage is a gap.
  • Tag without enforcement → "PII" in the catalogue, no masking policy in the warehouse. Detect by querying each tagged column as a low-privilege role and asserting the value comes back masked.
  • Owner unavailable → no one can sign an exception. Detect by measuring time-to-acknowledge on the test tickets; if it exceeds the rollout window, the control is not operable.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-4

Create a data access request workflow.

Answer

What I'd say first (60–120 seconds)

Before designing this I need three things pinned down: what the access actually is, who owns the data, and where enforcement lives. I'll assume a mid-size company: 1,200 analysts, ~4,000 tables in Snowflake, Okta as the IdP, Looker and Jupyter on top, and that the ask is read access to production data, not write.

The core answer: the request form is not the workflow. The workflow is a routing decision, an enforcement action, and an expiry. A request captures requester, asset, columns, row filter, purpose, duration, and whether results leave the warehouse. A policy engine maps (classification tag, purpose, duration) to an approver set. Approval writes a grant into the IdP group that the warehouse role is already bound to. A scheduled job revokes at expiry. Status pages, appeals and reviews hang off that loop: they are not the loop.

Routing: what actually decides it

SignalValueRoute
classification tagpublic / internalData owner only; auto-approve if read-only and ≤ 30 days
confidentialData owner + privacy
restricted / piiData owner + privacy + security; never auto-approve
Row filter requestedanyData owner; never auto
Duration> 90 daysAdds quarterly recertification
Destinationextract or downloadAdds security review

The tag is the only signal the requester cannot self-assert. Purpose and duration are self-asserted, so they can only widen the approver set, never narrow it.

Enforcement

Snowflake grants have no TTL. Okta Identity Governance access requests do carry an expiry, so put the clock there and let the grant follow group membership. Row-level restriction belongs in a policy, not in per-user grants:

SQL
-- user -> Okta group -> Snowflake role -> masked view
GRANT SELECT ON VIEW analytics.orders_masked TO ROLE analyst_orders_us;

CREATE ROW ACCESS POLICY rap_region AS (region VARCHAR) RETURNS BOOLEAN ->
  CURRENT_ROLE() IN ('analyst_orders_us','analyst_orders_eu')
  AND region = CASE CURRENT_ROLE()
                 WHEN 'analyst_orders_us' THEN 'US'
                 WHEN 'analyst_orders_eu' THEN 'EU' END;

A user in analyst_orders_eu running SELECT * FROM orders_masked sees only EU rows; the filter is applied by the warehouse, so a hand-written query cannot escape it. The revoke job sweeps grants that outlived their request:

SQL
SELECT grantee_name, role, created_on
FROM snowflake.account_usage.grants_to_users
WHERE deleted_on IS NULL
  AND created_on < DATEADD('day', -90, CURRENT_TIMESTAMP());

Trade-off: pre-approved roles vs per-request routing

At ~90 requests/week, if 12 tables account for ~70% of them, pre-approving those 12 as masked read-only roles removes ~63 requests/week and leaves 27 that need a human. The cost is coarseness: the pre-approved role grants the whole view, not the three columns asked for, so it only works when the view is already masked and row-filtered. Rule: pre-approve when the asset is read-only, already masked, and requested by more than 20 distinct people per quarter. Route individually when the asset is tagged pii or restricted, or when the request carries a row filter.

Failure modes and how you catch them

  1. Approval drift: approved in Okta, role never bound to the group, so the user has a ticket and no access. Detect with a nightly join of Okta group membership against GRANTS_TO_USERS; alert on any approved request with no matching grant after one hour.
  2. Expiry not enforced: the revoke job fails and the grant persists. Detect by querying for grants past their request expiry; page if the count stays above zero for 24 hours.
  3. Dashboard bypass: Looker's service account holds a broad role, so a user denied in Snowflake still sees the data through a dashboard. Record the role each dashboard runs as and flag any dashboard broader than the requester's entitlement.
  4. Extract leakage: revocation does not recall a downloaded CSV or a cached dataframe. Log egress from the warehouse and notebook hosts, and treat download as a separate approval with its own expiry.

Reviews: revoke after 90 days unused, measured from ACCESS_HISTORY, and re-route automatically when an asset's classification tag changes.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-20

How do you design role-based, least-privilege access control for sensitive data (roles, entitlements, purpose limitation, and recertification) so access governance is a standing control rather than a queue of one-off requests?

Answer

First 90 seconds. Before naming a single role, fix three things: the sensitivity tiers, the identity source of truth, and the point of enforcement. Roles derived from team names rot within two reorgs; roles derived from (job function × data domain × sensitivity tier) survive them. Every grant is then a tuple (subject, dataset, column set, purpose, expiry) not a boolean on a table.

Assumptions I'd state out loud: one IdP (Entra/Okta) is the only source of human identity; the catalogue is authoritative for dataset and column classification (a DCAT-3 dcat:Dataset carrying accessRights); enforcement sits at the query engine, not the BI tool, because the BI tool is never the only client.

Tiering drives the cadence, the approver and the TTL.

TierExampleGrant unitMax TTLRecertApprover
Restrictedraw PII, special-category datarole × dataset × column set × purpose90 daysquarterlydata owner + privacy
Confidentialpseudonymised customer recordsrole × dataset180 dayssemi-annualdata owner
Internalaggregates, reference datarole × domain12 monthsannualsteward

NIST CSF 2.0 PR.AA-05 asks exactly this: permissions defined in policy, managed, enforced, reviewed, with least privilege and separation of duties. The RMF supplies the loop (select controls, assess, authorise, monitor) so recertification is a monitoring activity with an owner, not an annual email.

Purpose limitation is an attribute of the grant, not a form field. GDPR Art. 5(1)(b) requires purpose limitation and Art. 25 requires it by design; a free-text "reason" box satisfies neither, because nothing can evaluate it. Purpose comes from a controlled vocabulary (fraud investigation, credit decisioning, service delivery, aggregate analytics) and travels as a claim in the session token, checked at query time:

rego

OPA 0.68; illustrative policy over a JWT carrying roles, purpose, exp

package access

default allow := false

allow if { input.action == "read" some role in input.token.roles grant := data.grants[role][input.dataset] input.token.purpose in grant.purposes input.token.exp > time.now_ns() / 1000000000 not grant.revoked }

Recertification is a usage-driven review, not a calendar blast. The owner attests, never the requester. Each line carries evidence: query count over the last 90 days, datasets touched, and OpenLineage job-level lineage showing which pipelines read the asset. Auto-revoke on 90 days of non-use before the review opens, so humans only adjudicate live grants.

Worked load, labelled as an example: 4,200 standing entitlements. 600 restricted, 1,600 confidential, 2,000 internal. Tiered cadence gives 600×4 + 1,600×2 + 2,000×1 = 7,600 reviews a year, about 253 hours at 2 minutes each. Recertifying everything quarterly is 16,800 reviews, 560 hours: the tiering is what makes the control survivable. Auto-revoking stale grants first typically removes a quarter to a third of the rows.

Failure modes and how you catch them. Role explosion: 1,800 roles for 900 people. Detect roles with exactly one member and require a named exception for them. Purpose drift: grants whose purpose is not in the vocabulary. Count them weekly. Rubber-stamping: an approval rate above 98% with a median decision time of seconds. Sample twenty decisions and check the reviewer opened the usage evidence. Inherited grants: effective permissions computed from nested groups diverge from the declared model. Diff the two nightly. Standing break-glass: admin accounts with no expiry and no owner. Alert on any entitlement whose subject is a service principal with an empty owner field.

When not to do this. Under roughly 50 people and 10 datasets, a reviewed spreadsheet is honest and a role model is theatre. Where access is genuinely per-case (research, litigation) purpose-bound time-boxed grants beat roles, because the role would encode a case, not a job.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-6

Govern secondary use of customer data.

Answer

What I'd say in the first two minutes

Assume a B2C SaaS with EU and US customers, data collected to deliver the service under contract, and a proposal to reuse it: training a model, or sharing with a partner. Secondary use is a new purpose. The governing question is not "do we have the data?" but "is this purpose compatible with the one we collected it for, and if not, do we have a fresh lawful basis?" Existing access is not a basis, and neither is pseudonymisation.

The mechanism

GDPR Art 5(1)(b) is purpose limitation: a new purpose is lawful without new consent only if it is compatible with the original. Art 6(4) sets the compatibility test: the link between the two purposes, the context of collection and the relationship with the person, the nature of the data (special categories weigh heavily), the consequences of the further processing, and the safeguards in place. Fail it and you need consent or a basis in law. Consent is not a free pass: it must be specific and granular, and re-consenting an existing base is slow. An opt-in email to a dormant list typically returns low single digits, so budget for the population you lose.

Art 6(4) factorCompatibleIncompatible
Link between purposesfraud detection on the same transaction streamselling workout data to insurers
Context and relationshipsame product, same expectationnew audience, new power asymmetry
Nature of datapseudonymised clickstreamhealth, biometric, precise location
Consequencesno individual decisionspricing, eligibility, automated decisions
Safeguardsaggregation, privacy budget, access controlraw row-level export

Worked case

A fitness app holds workout logs and heart rate, Art 9 health data, collected to deliver training plans. Proposal: license it to an insurer for underwriting. Trace the five factors: link is weak (service to insurance), context changes (consumer to underwriter), nature is special category, consequences are eligibility and pricing, safeguards are absent. Four of five fail, so Art 6(4) does not carry it. Options: decline, or require Art 9(2)(a) explicit consent, plus Art 22 safeguards if decisions are solely automated, plus a DPIA under Art 35(3)(b) for large-scale special-category processing. Change the proposal to internal model improvement on the same service, cohort-level aggregates, a differential-privacy budget, and no individual decisions, and it passes.

Why "we removed the names" is not enough

Sweeney's 1997 result: 87% of the US population is uniquely identified by 5-digit ZIP, gender and date of birth. HIPAA Safe Harbor strips 18 identifier classes (45 CFR 164.514(b)); Expert Determination is the alternative. Narayanan and Shmatikov re-identified Netflix Prize records in 2008 by joining against IMDb ratings. So before any release, run a uniqueness check on quasi-identifier combinations, if any combination has k=1, it is not anonymous.

Failure modes and detection

  1. Pseudonymised dataset re-identified by join. Detect: k-anonymity check on quasi-identifiers before release.
  2. Catalogue scope creep: a dataset tagged "internal analytics" gets joined into a new pipeline. Detect: ROPA diff review at each release, alert on new consumers of a restricted dataset.
  3. Consent drift: consent taken for marketing reused for model training. Detect: purpose tag on each consent record, block pipeline reads where tag ≠ purpose.
  4. Retention drift: stop conditions never fire. Detect: TTL on derived datasets, not just the source.

Trade-offs

Aggregate versus row-level is utility against risk; pseudonymise versus anonymise is reversible against not; consent versus legitimate interests is coverage against friction. Decline outright when the new purpose changes the power relationship (insurance, employment, credit) because no safeguard fixes that. Under CPRA, sensitive personal information carries a right to limit use, so the US side is not a free zone either.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-8

Create a data-sharing agreement for an external partner.

Answer

What a strong candidate says first

Pin down two things before writing a clause: what data actually moves, and who is the controller on the other side. If the partner is an independent controller, they'll use the data for their own purposes, you need a controller-to-controller agreement, not a processor DPA. Assume EU personal data, a partner you can't audit daily, and a batch feed.

The agreement allocates liability; the controls are what make it true. Write both, and make the controls the enforcement.

The clauses that carry weight, and what enforces each

ClauseTechnical controlHow you detect violation
Purpose limitation / minimizationGrant SELECT on a view, never the base tableQuery audit shows access outside the view's columns
Transfer securityTLS 1.2+, AES-256 at rest, PGP-encrypted files over SFTP with a per-partner keyKey rotation logs; failed-decrypt alerts
Recipient authenticationPer-partner mTLS or OAuth2 client credentials, scoped audienceConcurrent sessions from different ASNs
Retention / deletionHard date (e.g. 90 days) plus deletion attestationCanary record planted in the feed
Onward sharingProhibited without written consentContractual; spot-check the partner's public disclosures

The minimization clause is the one people write and don't enforce. Enforce it structurally:

SQL
CREATE VIEW partner_orders AS
SELECT order_id, region, amount
FROM orders
WHERE created_at >= DATE '2024-01-01';
GRANT SELECT ON partner_orders TO partner_ro;

The partner's credentials can't reach orders. Scope creep becomes a permission error, not a conversation.

Trade-offs

Raw vs aggregate: if the partner only needs counts, ship aggregates with a minimum cell size. Suppress any cell with n < 5. Cheaper to defend, less useful; decide by whether they need row-level joins.

Pseudonymization vs anonymization: a stable token is still personal data under GDPR (Recital 26. Pseudonymized data remains personal), so the agreement still applies. Don't let anyone call it anonymous and drop the clauses.

Push vs pull: batch SFTP is simple and auditable; an API with scoped tokens is fresher but you now own availability. If the partner's SLA is 99.9%, a nightly file won't meet it.

Failure modes

  • Re-identification by joining with public data. Detect before release with a k-anonymity check; if k < 5, generalize or suppress.
  • Credential sharing. Detect via concurrent logins from different ASNs; rotate on first hit.
  • Deletion not honored. Plant a unique synthetic record, request deletion, verify it's gone within the window.
  • Silent scope creep. The view makes it impossible: that's the point of the view.

Two clauses people forget: incident coordination. A fixed notification window (e.g. 72 hours, matching GDPR Art. 33) and a named contact on both sides, and change notification, so a schema change or a new field doesn't silently widen the feed.

Exit

Name the exit before you sign: who deletes, by when, how you verify, and what happens to derived data. A termination clause you can't test is a clause you don't have.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-11

Govern a machine-learning training dataset.

Answer

What I'd say in the first two minutes

Assume: a supervised model on personal data, EU and US users, weekly retrain, one team owning the pipeline. "Govern" means the dataset has a named owner, a stated purpose, and controls that survive a version bump, not a fairness statement in a slide.

The core: bind the dataset to a purpose and a lawful basis, then make every change traceable and reversible.

  • Purpose and basis, one sentence: "predict churn for existing customers, no automated decision with legal effect." That sentence picks the lawful basis (GDPR Art. 6(1)(f) legitimate interest vs consent) and the retention clock (Art. 5(1)(e)).
  • Owners: data owner (accountable), steward (runs the pipeline), model owner (ships it). One name each, in the repo.
  • Provenance per source: origin, collection method, licence, consent scope. The Datasheet for Datasets fields.
  • Minimisation: column allowlist, PII detected with Presidio, access role-based and logged.
  • Split integrity: split by entity and by time, never by row.
  • Deletion: decide up front whether you can retrain; if not, shard.
  • Monitoring: drift, per-slice performance, harm reports.

Trade-off 1: retrain vs sharded training (SISA)

Deciding criterion: deletion rate × retrain cost vs sharding overhead.

approachcost per deletionaccuracywhen
full retrainone full runbaseline<10 requests/month, or training <1h
SISA, S=20 shards, R=4 slices~1/80 of a runslightly lower (each model sees 1/20 of data)high deletion rate

If a run is 6 h on 8 GPUs and you get 200 requests/month, full retrain is 1,200 GPU-hours/month. SISA cuts that ~80×, at the price of 20 models to serve.

Trade-off 2: k-anonymity vs differential privacy

k-anonymity (k=5) is cheap and auditable but breaks under homogeneity and composition attacks: that's why l-diversity and t-closeness exist. DP gives a formal guarantee but costs utility and needs a privacy accountant. DP-SGD at ε=8 is a common operating point; ε=1 usually degrades utility noticeably. Decide: external or aggregate release → DP. Internal training behind contracts and access control → k-anonymity plus access control is often enough.

Failure modes and how you detect them

  • Leakage from duplicates across splits. Detect with a MinHash near-duplicate scan. Symptom: test accuracy 0.94, production 0.71.
  • Deletion not propagated. Detect with a reconciliation job diffing the deletion log against each dataset version; alert on any ID present in a version built after its deletion timestamp.
  • Representation gap. Detect with per-slice counts in the validation step (Great Expectations or TFX); fail the build below 100 examples in a slice.
  • Drift. PSI > 0.2 on a feature, or KS test p < 0.01, checked weekly.

Deletion propagation, traced

Request for user u at T:

  • T+0: row removed from source.
  • T+1h: feature-store partition rebuilt; u's features gone.
  • T+24h: next retrain excludes u; with SISA only u's shard retrains and the model version bumps.
  • Residual: models trained before T still encode u. Either retrain or document the residual: don't claim erasure you can't deliver.

That's the answer: purpose and basis, named owners, provenance, entity/time splits, a deletion path you've costed, and monitoring that fails the build rather than a fairness claim.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-14

Design governance for self-service analytics.

Answer

What a strong candidate says in the first 90 seconds.

Assume 50–500 analysts, one cloud warehouse (Snowflake or BigQuery), at least one regulated column, and a platform team of 2–5. Governance is a three-tier control plane enforced in code, not a review board.

TierWho writesEnforcementPublication
Certified martStewards + platformRow access policy + masking policy on PIIPR review, dbt contract enforced: true, tests green
ExplorationAny analystRow access policy onlyPrivate schema, 30-day TTL
RawIngestion service accountsNo human grantsNone

The property that makes this safe: row access policies attach to the table, not the consumer. Copy the table into your own schema and the policy travels with it. That is why exploration can run open while raw stays closed.

Trace. A row access policy bound to a region column:

SQL
CREATE ROW ACCESS POLICY rap_region AS (region STRING)
  RETURNS BOOLEAN -> CURRENT_ROLE() IN ('ANALYST_EMEA') AND region = 'EMEA';
ALTER TABLE analytics.customers ADD ROW ACCESS POLICY rap_region ON (region);

ANALYST_EMEA runs SELECT count(*) FROM analytics.customers; and gets 41,203 rows: EMEA only. ANALYST_APAC runs the identical SQL and gets 88,910 (counts illustrative). The policy is evaluated per query, per role; no view, no copy, no per-team table. Bypass detection: ACCOUNT_USAGE.ACCESS_HISTORY (365-day retention) shows the direct table read and the role that made it.

Cost arithmetic. BigQuery on-demand lists at $6.25/TiB with 1 TiB/month free. A SELECT * over a 10 TiB table with no partition filter scans 10 TiB = $62.50. Fifty a day = $3,125/day. Guard with maximum_bytes_billed per query (say 1 TiB) plus a per-user custom quota. Snowflake: an XS warehouse is 1 credit/hour, so 24/7 is 24 credits/day, roughly $48/day at Standard list (~$2/credit, AWS us-east-1). AUTO_SUSPEND defaults to 600s; set analyst warehouses to 60 and put a resource monitor at 80% notify / 100% suspend.

Metrics. Define each certified metric once in the semantic layer (dbt Semantic Layer/MetricFlow, or LookML) so "revenue" has one definition. Analysts query the metric, not the table.

Failure modes and how you catch them.

  • Shadow copies. Analyst runs COPY INTO @stage or exports to Sheets. Detect via ACCESS_HISTORY for COPY/UNLOAD plus cloud egress logs; alert on any write outside the governed bucket prefix.
  • Stale extracts. A dashboard reads a 40-day-old extract. Detect with dbt source freshness on loaded_at against the SLA; page at 2x SLA.
  • Permission drift. Someone grants SELECT directly. Diff ACCOUNT_USAGE.GRANTS_TO_ROLES against Terraform state nightly; drift pages the on-call.
  • Shared credentials. Two people on one login. Detect distinct client IPs per user in LOGIN_HISTORY; humans authenticate through SSO (Okta/Entra ID) mapped to warehouse roles, never service accounts.
  • Cost runaway. Resource monitor fires; correlate with QUERY_HISTORY by user and warehouse to find the query, not just the bill.

Trade-offs. The alternative is a review board for every query. That is right when you have under ten analysts and one domain, and wrong at a hundred: it becomes a three-day queue and analysts route around it into spreadsheets, which is worse than the risk you were gating. The tiered design is wrong when the engine cannot enforce row-level policy at all; then you gate at the BI layer with Looker access_filters or Tableau user filters and accept that direct SQL bypasses it. It is also wrong if you cannot staff a steward per certified domain: an unowned certified table is a stale table with a badge.

Close. Publish each certified dataset's limitations (refresh lag, known exclusions, columns that are not comparable across regions) so self-service does not become self-interpretation.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-16

Review a vendor data platform from a governance perspective.

Answer

I'd run this as a procurement gate: approve, approve with conditions, or block. Assume the vendor is a SaaS analytics platform processing EU personal data for a US company, and the decision is whether to sign a three-year contract. My default: approve only if the vendor provides a SOC 2 Type II report covering the last 12 months, signs a GDPR Art. 28 data processing agreement with standard contractual clauses, and passes a deletion test on a canary record within 30 days. Otherwise, block or require remediation.

Here's how I'd spend the first 30 minutes of the review.

Clarify scope and decision. What data classes? Personal data, special categories, cardholder data? Who is controller and processor? Which jurisdictions? What is the business criticality and the exit cost? The answer changes if the vendor holds only anonymised telemetry versus production PII.

Map data flows. Where does data reside? Which subprocessors touch it? Cross-border transfers? Encryption at rest and in transit? Who holds the keys: vendor-managed, BYOK, or HSM? Tenancy: shared or dedicated? Logging: what is logged, retention period, who can access? Backups: frequency, retention, restore testing? Retention and deletion: policy, legal hold, deletion API? Portability: export formats, egress costs? Lineage: can you trace a record from source to report? Service levels: RTO and RPO? Incident notification: timeline and who notifies? Rights support: how do they handle DSARs? Contract exit: termination assistance, data return, deletion certification.

Assess vendor and supply-chain risk. Ask for SOC 2 Type II, ISO 27001, pen test summaries, subprocessor list, and financial stability. Check for gaps: a SOC 2 report may cover security but not availability or confidentiality. Check the period: a report from 18 months ago is stale.

Define shared responsibilities. What does the vendor do versus what you configure? Vendor encrypts at rest, but you manage IAM policies. Vendor logs API calls, but you monitor them. Vendor backs up, but you test restore.

Test controls. Least privilege: create a read-only user and verify they cannot delete. Deletion: insert a canary record with a unique UUID, request deletion, wait 30 days, then query the vendor's API and request a backup restore to see if the canary reappears. Audit export: export logs to your SIEM and verify completeness. Termination: simulate exit by requesting a full data export and measuring time and format.

Worked example. Hypothetical: Vendor X claims deletion within 24 hours. I create a canary record with UUID 123e4567-e89b-12d3-a456-426614174000. I request deletion via their API. 24 hours later, the API returns 404 for that record. But when I ask support to restore a backup from 48 hours ago, the canary reappears. That means deletion does not propagate to backups. Detection: canary record plus backup restore test. Operational cost: if a data subject requests erasure under GDPR Art. 17, you cannot comply, exposing you to fines up to €20 million or 4% of global annual turnover, whichever is higher. You may also fail a PCI DSS audit if cardholder data is involved.

Tradeoffs. When is heavy vendor integration worth the exit cost? If the vendor provides a unique capability: say, real-time anomaly detection on 10 TB/day that would take 18 months and $2M to build: the exit cost may be acceptable if you have a documented exit plan, data portability in a standard format (Parquet, CSV), and a tested migration path. Compare alternatives: build in-house (high upfront, full control), another vendor (lower switching cost if standards-based), or multi-cloud (redundancy but complexity). Deciding criteria: data gravity, switching cost, regulatory requirements, and time to value.

AreaEvidence to requestPass criteriaFailure mode and detection
LegalGDPR Art. 28 DPA, SCCs, subprocessor listSigned DPA, SCCs for transfers, all subprocessors disclosedMissing SCCs → block. Detect by comparing subprocessor list to actual data flows.
SecuritySOC 2 Type II, ISO 27001, pen testReport covers last 12 months, no critical findingsStale report → require bridge letter. Detect by checking report date.
AccessIAM policies, audit logsLeast privilege, MFA, no shared accountsOver-privileged service account → detect by reviewing IAM roles.
DeletionDeletion API docs, backup policyDeletion within 30 days, including backupsCanary record reappears after restore → detect by canary plus restore test.
PortabilityExport formats, egress costsStandard format (Parquet, CSV), no egress feeProprietary format → negotiate exit assistance. Detect by requesting sample export.
IncidentIncident response plan, notification SLANotify within 72 hours per GDPR Art. 33No SLA → add contractual term. Detect by tabletop exercise.

My decision: approve only if all critical controls pass. Otherwise, block or require remediation with a 90-day deadline. Keep internal owners and catalogue records because outsourcing custody does not outsource accountability. Avoid lock-in that prevents lawful disposal or safe migration, but accept it when the capability is unique and exit is planned.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-7

Design retention and deletion governance.

Answer

Clarify, then answer. "Retention and deletion governance" gets asked two ways: the policy (what we keep and why) and the machinery that makes deletion true across every copy. I'd confirm which, then cover both: a schedule nobody can enforce is the actual failure.

Assumptions: multi-tenant SaaS on AWS; Postgres primary; S3 for backups and analytics; one Kafka bus; ~40 downstream systems including three SaaS vendors; EU and US customers, so GDPR and CCPA/CPRA both bite.

Core answer, three artefacts. A retention schedule keyed by data class, a deletion ledger that is the system of record for erasure, and a reconciliation job that proves the ledger matches reality.

Retention schedule: class, clock start, duration, authority:

ClassClock startsDurationAuthority
Customer PIIaccount closure30 daysGDPR Art. 5(1)(e); our policy choice
Financial recordstransaction date7 yearsSOX §802 / 18 U.S.C. §1519
Broker-dealer recordscreation6 years, first 2 readily accessibleSEC Rule 17a-4(b)(4)
Access logsevent time12 monthsinternal security policy
Deletion ledgererasure request7 yearsproof of erasure

GDPR names no number: Art. 5(1)(e) says "no longer than necessary," so 30 days is a defensible choice, not a citation. Art. 83(5) fines reach €20M or 4% of global annual turnover, whichever is higher. That asymmetry is why the ledger matters more than the schedule.

Mechanism. Deletion is a tombstone plus an outbox, not a cascade of synchronous calls. The erasure request writes a ledger row (status PENDING), soft-deletes the subject in Postgres and nulls PII columns, and inserts an outbox row in the same transaction, so the tombstone and the intent to propagate commit atomically. A relay publishes to a Kafka topic keyed by subject_id, which preserves per-subject ordering. Each consumer deletes its copy and writes propagated_at back to the ledger.

Backups are the hard part. An S3 object under Object Lock in compliance mode cannot be deleted by anyone, including the root account, until retention expires. So you don't delete from backups: you crypto-shred. Envelope-encrypt PII with a per-subject data key wrapped by a KMS CMK; deleting the wrapped key makes the ciphertext in every snapshot unrecoverable. AWS KMS enforces a 7-day minimum waiting period on key deletion, 30 days by default, so plan the SLA around that.

Worked trace: erasure for subject 8842:

  1. t=0: ledger row PENDING; Postgres soft-delete and outbox row commit together.
  2. t=+2s: relay publishes to deletions.v1, key=8842.
  3. t=+5s: Elasticsearch delete-by-query, Redis DEL, feature-store vector delete, warehouse dim_user delete; each writes propagated_at.
  4. t=+1h: reconciliation finds 6 of 7 systems propagated. The email-marketing vendor has no deletion API; opens a ticket under the DPA's 30-day SLA.
  5. t=+1h: the t=−6h nightly snapshot contains 8842. Object Lock blocks deletion. The subject's wrapped DEK is deleted; snapshot PII is now ciphertext.
  6. t=+35d: lifecycle rule expires the snapshot.

Failure modes, with detection. Resurrection: a restore from a pre-deletion snapshot re-ingests erased subjects. Detect by replaying the ledger against the restored snapshot before it takes traffic: any subject_id with requested_at earlier than the snapshot timestamp is a hit. Cost is a full ledger scan over the snapshot, minutes at 40 TB. Orphaned copies: a system in the catalog that never appears in the ledger. Detect by diffing catalog system count against distinct systems in the ledger; alert on any system with zero propagated rows in 30 days. Silent vendor non-compliance: the 30-day DPA SLA is the only signal. Track it as an SLO, not a ticket.

Trade-offs. Crypto-shredding is O(1) per subject and works on immutable backups, but needs per-subject key granularity: KMS request costs and key sprawl at millions of subjects. Physical deletion is verifiable but cannot reach WORM storage. Legal hold inverts the default: a hold on a custodian suspends deletion of everything in scope, so deletion must check the hold table first or you destroy evidence. And when disposal can't be assured (a vendor with no API, a format you can't index) the honest move is to stop collecting that field, not to promise deletion you can't prove.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-18

Retire a data asset safely.

Answer

What I'd say first (60–120 seconds)

Three questions before anything is dropped: what's driving this (contract expiry, GDPR Art. 17 erasure, cost, or a migration), who can sign the disposal, and what still reads it. Those three pick the method.

Assumptions I'd state out loud: Snowflake warehouse, S3 lake, Kafka, DataHub as the catalogue, GDPR and SOX both in scope, and the asset has a named owner.

Then the answer: retirement is a choice between four methods, not a checklist.

MethodPick it whenWhat it costs you
Drop nowno legal hold, no live consumer, no restore needirreversible; Snowflake Fail-safe still holds it 7 days
Tombstone (deleted_at)consumers need to fail gracefully, rollback windowrows stay, every query must filter, storage unchanged
De-identifyanalytics value survives, PII must gore-identification risk: unsalted SHA-256 on an email column falls to a dictionary attack
Read-only freezelegal hold or unknown consumerskeeps full cost, needs a hard expiry date

Deciding order: legal hold beats reversibility, reversibility beats consumer count, consumer count beats storage cost.

Why retirement fails

The catalogue is a claim, not a fact. DataHub lineage is usually built from dbt manifests, so it sees the 12 dbt models and misses the ad-hoc analyst query, the Looker extract, and the reverse-ETL sync to Salesforce. That gap is where retirement breaks.

Worked trace

40 TB ORDERS_RAW, 12 dbt models, 3 Looker dashboards, 1 reverse-ETL sync.

  1. Query SNOWFLAKE.ACCOUNT_USAGE.ACCESS_HISTORY (365-day retention) for the object. It shows 9 of the 12 models, plus 4 users not in the catalogue.
  2. Ask those 4 users. Two are dead accounts, one is a dashboard, one is a nightly script.
  3. Freeze: REVOKE INSERT, UPDATE, DELETE ON TABLE orders_raw FROM ROLE analyst;. Leave SELECT for 30 days.
  4. Migrate the nightly script to the replacement table; confirm row counts match within 0.1%.
  5. Drop. Fail-safe holds it 7 more days, so the true deletion date is day 37, not day 30.
  6. Issue erasure requests to the reverse-ETL vendor with a contractual SLA.

Failure modes and how you catch them

  • Silent consumer breakage. Detection: alert on query errors referencing the object name for 30 days post-drop.
  • Backup restore leak. A snapshot restore reintroduces erased rows. Detection: post-restore job diffs the restored table against the erasure ledger.
  • Resurrected pipeline. An Airflow DAG recreates the table. Detection: alert on CREATE TABLE matching the name pattern, and on any write to the schema.
  • Vendor copy. Detection: the deletion-confirmation receipt, not the request.

Retention floors you can't drop below

SOX workpapers commonly 7 years; PCI DSS v4.0 audit logs 12 months with 3 months immediately available; Kafka log.retention.hours defaults to 168, so a topic keeps data 7 days after you stop producing. Erasure under GDPR Art. 17 doesn't require rewriting immutable backups, but it does require that a restore can't put the data back into live use.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-23

Assess governance for a merged dataset.

Answer

First 90 seconds. "Merged dataset" decides nothing on its own, so I'd pin the scenario before answering. Assume two customer sources: a checkout system (name, email, order history) and a support tool (tickets, sentiment labels), joined on hashed email to build a churn feature. The question I actually owe is not "is governance good" but "may this join proceed, and under what controls." My default answer: a join is a new processing purpose, and separately approved sources do not make it approved.

The governing test is purpose compatibility plus necessity. Under GDPR Art. 5(1)(b) the merged purpose must be compatible with each source's original one; Art. 6 supplies the lawful basis, and if the output drives decisions with legal or similarly significant effect, Art. 22 applies. Where health data is involved, HIPAA 45 CFR 164.514(b) gives two routes: Safe Harbor, which strips 18 identifier categories, or Expert Determination, which requires re-identification risk to be "very small." Neither route is a checkbox. Both are claims you have to defend with a number.

Why linkage creates new risk. Re-identification is not about names; it is about quasi-identifiers shrinking the anonymity set. Sweeney's 1997 result: 87% of the US population is uniquely identified by the triple {5-digit ZIP, gender, full date of birth}. Each source may hold two of the three. The join supplies the third, the equivalence class collapses to size 1, and the row is a person. Linkage adds no new fields: it removes the ambiguity that was protecting them. The join key is itself an inference channel: support ticket plus order history yields "complained about billing, then churned," an attribute neither source declared.

Three postures, and what decides between them.

PostureWhen it is rightCost
Block the joinPurpose incompatible, or no lawful basis for the combined inferenceFeature not built
Proceed, aggregate-onlyJoin necessary but row-level output notWeaker model signal
Proceed with controlsNecessity holds, smallest equivalence class ≥ 5 after generalizationTokenization, access review, deletion plumbing

The deciding criteria are necessity (can the stated purpose be met without the join?) and the sensitivity of the new inference, not of either source alone.

Failure modes and how you catch them.

  • False-positive linkage. Fuzzy matching on name + DOB at a 0.85 threshold merges two different people. Detect by adjudicating a 200-pair sample by hand and tracking the false-merge rate; above ~1% the join is not fit to ship.
  • Small-cell leakage. Run k-anonymity on the output; any equivalence class with k = 1 is a re-identification. This is a build-time gate, not a review.
  • Deletion propagation. An Art. 17 erasure request hits the source but not the derived feature store or training snapshot. Detect by reconciling erasure tickets against derived tables; a feature store holding a stale copy fails.
  • Purpose creep. Access logs show the merged table read by a team outside the declared purpose. Alert on first read, not on quarterly review.

Worked check (hypothetical figures). Merged table of 2,000,000 rows, joined on ZIP5 + DOB + gender. Distinct triples: 1,200,000, so average class size 1.67 and roughly 700,000 classes of size 1. Publishing any per-row attribute re-identifies 700,000 people. Generalize DOB to birth year: distinct triples fall to 180,000, average class size 11.1, but the smallest class is still 1. Suppress k < 5 and the residual risk is defensible. If suppression removes so many rows the feature is useless, that is the signal to fall back to aggregate-only.

Decision-changing condition: if necessity holds and the post-generalization minimum class size is ≥ 5, proceed with a tokenized join and purpose-bound access; otherwise restrict to aggregates or block.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-15

Handle a critical data-definition change.

Answer

First 90 seconds

Before touching anything I want three things pinned: what the field means today, what it will mean, and who owns the call. "Critical" almost always means the change is semantic, not structural: the column name and type stay the same while the meaning shifts, so nothing fails loudly and every downstream number is quietly wrong. I'll assume that case: order_total currently means gross before discount, and product wants it to mean net after discount.

My default answer is: don't redefine in place. Add a new field, backfill it, dual-write for a window, migrate consumers, then retire the old one. In-place redefinition is only defensible when the field has one consumer you control and no history anyone queries.

Assumptions: the table lives in a warehouse (Snowflake or BigQuery), consumed by dbt models, a BI layer, and an ML feature pipeline; raw events have 90-day retention; and I can't stop writes.

Why dual-write works, and where it breaks

Dual-write means the producer writes both order_total_gross and order_total_net for a window. It works because it makes the migration reversible: consumers move at their own pace and you can diff the two columns on live traffic. It breaks three ways: non-atomic writes (if two separate jobs write the columns, a crash between them leaves rows with one null); backfilled history disagreeing with live rows because discount logic changed mid-window; and the window closing before the slowest consumer migrates.

Compatibility differs by format, and that decides whether a rename is free or a breaking change:

changeAvroProtobufIceberg / Parquet
add field with defaultbackward compatiblenew field number, fineadd column, fine
remove fieldforward compatible if defaultedreserve the number, never reusedrop column; old-schema readers fail
renamealiaswire-safe, breaks JSON mappingmetadata-only (column IDs)
change typeincompatibleonly within the same wire typeincompatible

Worked migration

Table is 4.2B rows; backfill runs at 200k rows/s, so 4.2e9 / 2e5 = 21,000 s ≈ 5.8 h per pass. Two passes (populate, then verify) is ~12 h of warehouse compute: at a hypothetical 40 credits/hour and $3/credit, roughly $1,440. That number is what decides whether the owner approves the change.

Validation is row-level, not schema-level: assert net = gross - discount on a sample, then reconcile aggregate sums before and after. dbt model versions (1.5+) let you publish v1 and v2 side by side with a deprecation_date, so consumers opt in rather than get broken.

Failure modes and detection

  • Silent semantic drift: revenue drops ~12% overnight when net replaces gross. A schema test won't catch it: only a metric anomaly test will.
  • Non-atomic dual-write: detect with not_null tests on both columns plus a count of rows where exactly one is null.
  • Consumer still reading old semantics after cutover: query warehouse access history (Snowflake ACCESS_HISTORY, BigQuery INFORMATION_SCHEMA.JOBS) for the old column name past the deprecation date.

Retirement

Drop the old column only after access history shows zero reads for 30 days and the owner signs off. Update the glossary, quality rules, and sharing contracts in the same change, and make any restatement of historical figures explicit to finance.

When redefinition wins instead

Single consumer, no queried history, and a coordinated deploy: redefining in place is cheaper than a two-column window. Anything else (multiple consumers, retained history, or a semantic shift) the new field wins.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-12

Resolve disagreement between a data owner and privacy officer.

Answer

What a strong candidate says first

Name the disagreement before resolving it. It is almost never "is privacy important." It is two mandates colliding: the data owner is measured on the outcome (model quality, revenue, SLA) and holds the budget; the privacy officer is measured on lawfulness and risk and holds none. If the privacy officer is the statutory DPO, GDPR Art. 38(3) says they must not receive instructions on how they exercise those tasks, so seniority cannot settle it. But Art. 39(1)(a) and (c) make the DPO an adviser (inform, advise, monitor the DPIA) not the decision-maker. The controller decides and owns the consequence.

That splits one argument into two questions:

  1. Is this processing permitted, and under what conditions? The privacy officer's assessment. Not negotiable, not a stakeholder preference.
  2. Inside that envelope, is it worth doing? The data owner's call.

The resolution move is to shrink the processing until it fits the envelope, then check whether the business outcome survives. If it does, the disagreement dissolves. If it doesn't, you have a real escalation rather than a personality clash.

Worked example (figures illustrative)

A churn model. The data owner wants CRM email joined to 24 months of clickstream events at user level. The privacy officer objects on two grounds: the clickstream was collected for product analytics, so marketing use fails purpose limitation (Art. 5(1)(b)); and email is a direct identifier.

Minimized option: HMAC-SHA256 the email with a KMS-held key, keep 90 days of events, aggregate to weekly cohorts, retain 13 months.

variantmatch rateAUCretentionbasis
as proposed92%0.8124 mocontested
minimized78%0.7913 molegitimate interest, LIA documented
over-minimized41%0.7130 dclean, but below threshold

The business threshold was AUC ≥ 0.78. The minimized variant clears it. That is the answer to give: not "privacy wins" or "business wins," but a specific configuration both can sign.

Decision rights

decisionwho decideswho advises
lawful basis, retention, identifier handlingprivacy officer (as DPO: independently)data owner on operational cost
whether to proceed given the envelopedata owner / controllerprivacy officer
residual high risk after mitigationsupervisory authority, Art. 36both

Failure modes, with detection

  • Decision-by-committee stall. The DPIA sits "awaiting review" for three weeks and the item reappears on three consecutive privacy agendas. Detect it by ageing on the DPIA queue; cost is a slipped launch and a team that routes around the process next quarter.
  • Shadow copy. The data owner exports the CRM table to a personal bucket or a free-tier SaaS "just to test the idea." Detect via cloud DLP on the tagged CRM column, or an unexpected processor appearing in the Art. 30 record. Cost: unrecorded processing with no lawful basis, and if it leaks, the Art. 33 72-hour notification clock plus Art. 83 exposure up to €20M or 4% of global annual turnover.
  • Reclassification. Someone argues the hashed ID "isn't personal data." Detect by field-level lineage showing the join key derives from CRM.email, and by a re-identification test against the salt. Pseudonymised data is still personal data (Art. 4(5), Recital 26), so the assessment collapses and you are back at the start with less trust.

What would change the decision

If the minimized variant still misses the threshold and residual risk stays high, the decision is no longer internal: Art. 36 prior consultation with the supervisory authority. Otherwise escalate the specific decision, not the relationship, to the named accountable executive, record the dissent and the conditions in the DPIA and the Art. 30 record, and set a review date.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-19

How do you handle policy exceptions and non-compliance within a data governance framework?

Answer

What I'd say first

Assume three things exist: a catalog with lineage, an identity layer you can revoke from programmatically, and policies written as clause-level IDs rather than prose. Without lineage, the discovered-non-compliance path is manual and slow: say that out loud, because it changes the design.

The core answer: an exception is not a favor and not a ticket that dies in a queue. It is a time-bounded risk acceptance with a named owner, a compensating control, and an expiry that re-engages enforcement automatically. Proactive requests and discovered violations land in the same registry; only the clock differs: a discovered violation gets days, not months.

The minimum record is small: asset ID, the specific clause violated, quantified business impact if denied, the compensating control, an expiry, and an engineering owner with a remediation target. If you cannot name the clause, you do not have an exception, you have an undocumented deviation.

The design choice that matters

Two credible designs. The exception-ticket model lives in Jira: cheap, familiar, and it answers "who approved this." The risk-register model lives in a GRC tool and answers "how much accepted risk do we carry, on which assets, expiring when." Pick the register when you are regulated or when the board asks the second question; tickets alone cannot answer it. Most orgs run both (register as the record, ticket as the workflow) and the failure is letting the ticket become the record.

The strict version (three approvers, no permanent exceptions, hard 180-day ceiling) is right for regulated PII. It is wrong for a 40-person company with no DPO: the matrix stalls, people route around it, and an undocumented workaround is worse than a documented two-role approval. Match approver count to blast radius, not to org chart.

Same split on revocation. Automated revocation is correct when the control is enforceable at the identity or network layer. If revoking the role takes down a revenue pipeline, you want a grace window and a human, not a deny-all policy at 02:00.

Worked trace

Tier 3 exception on a telemetry table, granted Jan 15, 90-day ceiling.

TierExampleApproversMax duration
1Regulated PII, cross-borderData owner + DPO + BU lead30 days
2Internal confidentialData owner + security lead60 days
3Non-PII telemetrySteward + eng manager90 days

Alerts fire 14 and 7 days out: day 76 and day 83. No renewal by day 90: the CI gate blocks new deploys touching the asset and the IAM role is revoked. If the team renews twice without shipping the fix, that is 270 days of accepted risk on one asset. The metric that catches this is renewals per exception, not exception count: count stays flat while renewals climb.

Failure modes

Exception laundering: renewal approved on a status update rather than shipped remediation. Rubber-stamping at Tier 3 because the approvers never look at the asset. Orphaned exceptions when the owner leaves: the register must key on the asset, not the person. And alert fatigue: if 14-day warnings fire on 200 open exceptions, nobody reads them.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-17

Measure whether data governance is working.

Answer

The 90-second answer

Assume "governance" means the controls that decide who can use which data and whether it is fit for use, that you have a bounded tier-1 asset list (say 300 tables and streams tagged by revenue or regulatory exposure), and a catalog with lineage. Then governance is working if three things hold at once: the tier-1 estate is covered, the controls are fast enough that people do not route around them, and the data is actually used. Activity counts (policies written, meetings held, tickets closed) measure the program, not the outcome.

Coverage: at least 95% of tier-1 assets have a named owner and metadata reviewed in the last 12 months. Latency: access request p95 under 3 business days, tier-1 quality incident MTTR under 5 days. Outcome: at least two distinct consuming teams per tier-1 asset per quarter, and repeat incidents (same root cause twice in 90 days) under 10%.

Metric table

FamilyMetricDenominatorTargetBad reading means
Coverageassets with owner + metadata < 12 months oldtier-1 assets≥95%ownership is nominal
Latencyaccess request p95requests/quarter≤3 business dayspeople share credentials instead
Latencytier-1 incident MTTRincidents≤5 daysdetection works, remediation does not
Hygienegrants with zero reads in 90 daysactive grants≤2%entitlement creep
Outcometier-1 assets with ≥2 consuming teamstier-1 assets≥80%the catalog is a graveyard
Outcomerepeat incidents, same root cause ≤90 daysincidents<10%fixes are cosmetic

Worked check: stale access

Snowflake's ACCOUNT_USAGE.ACCESS_HISTORY keeps 365 days of query-level access. Queries touching each object over the last 90 days:

SQL
select f.value:"objectName"::string as obj, count(*) as queries
from snowflake.account_usage.access_history,
     lateral flatten(input => base_objects_accessed) f
where query_start_time >= dateadd('day', -90, current_timestamp())
group by 1;

Diff that against GRANTS_TO_ROLES. Suppose 12,000 active grants and 1,050 objects with zero queries. Not all are stale: break-glass roles and quarterly-report tables legitimately sit idle. Owner triage confirms 300. Reviewing all 1,050 by hand at 10 minutes each is 175 hours, about 4.4 engineer-weeks; filtering to "zero queries AND owner confirms" first cuts that to 50 hours. Revoke the 300, re-run next quarter, and watch the number: if it does not fall, revocation is the broken step, not detection.

Failure modes

Denial reduction is the classic Goodhart target: measure "access denials per quarter" and teams approve everything. Pair it with the share of grants revoked within 30 days and a sampled review of 20 approvals per quarter. A bad grant on a PII table is a reportable incident, not a metric blip. Lineage coverage is the second: 95% coverage with wrong edges is worse than 60% honest coverage. Sample 20 columns, trace upstream by hand, record agreement. Third, denominator drift: if the tier-1 list grows 20% a quarter, coverage looks flat while nothing improves. Freeze the list per quarter.

Trade-offs

Automated checks (dbt tests, Great Expectations, Monte Carlo) give continuous coverage but only for instrumented assets; manual attestation covers legal and policy judgment but decays, so treat attestation older than 12 months as missing. Central measurement keeps definitions consistent but bottlenecks; federated domain ownership scales but drifts: split it, with domains owning the numbers and central owning the definitions and the rollup. Do not measure a domain with fewer than about 20 tier-1 assets; the percentages are noise. And do not build a metric for a control you cannot change within a quarter: that is reporting, not governance. Quarterly, ask five to eight consumers what governance made harder last month; that is what should move policy, tooling or headcount.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-25

Evaluate a data governance policy for proportionality.

Answer

First 90 seconds

Proportionality has one test: a control's cost (approval latency, reviewer minutes, false blocks) should rise with the risk of the asset it protects, and no cheaper control should leave residual risk unchanged. A policy fails this in both directions: the same cost for a public marketing dataset and for a table of card numbers, or a rule so light it stops nothing. I evaluate the written policy against the org's own approval tickets, catalog metadata and query logs, because the policy's stated intent is the least reliable input.

Assumptions: the policy is already enforced through the catalog and warehouse; I can read tickets, tag metadata and audit logs; burden on the data user counts as cost, not only legal exposure.

Scoring each rule

Four numbers per rule. Risk weight: sensitivity times record volume times regulatory exposure. Control cost: p95 approval latency, reviewer minutes per decision, reviewer hours per quarter. Coverage: share of affected assets the control actually reaches, exports and downstream copies included. False-block rate: legitimate requests denied or abandoned.

Proportionality holds when cost is monotone in risk weight across tiers. The finding is almost always one tier carrying another tier's cost.

TierAssetsControlp95 wait
0publicnone, self-serveminutes
1internal analytics, no personal datatag-driven auto-grant plus quarterly attestationminutes
2customer PII, some columnscolumn masking (BigQuery policy tags, Snowflake tag-based masking on Enterprise Edition, Unity Catalog column masks); unmasked needs owner approval1 day
3payment, health, government IDowner plus privacy review, 8-hour JIT break-glass, post-hoc review within 24h3 days

Tier 1 decides most evaluations. If internal non-personal data queues behind the same reviewers as regulated data, the policy is disproportionate by construction.

Worked arithmetic (illustrative)

1,200 access requests over four quarters: 900 Tier 1 at 25 reviewer minutes, 260 Tier 2 at 45 minutes, 40 Tier 3 at 2 hours. That is 375 + 195 + 80 = 650 reviewer hours per quarter, roughly 0.4 FTE, and 58% of it spent on the lowest-risk tier. Auto-granting Tier 1 by tag (no PII tag and requestor in the owning group) drops the load to 275 hours, about 0.17 FTE, and removes the 2.5-day wait those 900 users currently absorb. If 8% of them abandoned the request and queried an approved-but-adjacent table instead, the old control was not protecting anything: it was relocating the query.

Shadow-copy check: count distinct write destinations per quarter against approved schemas. If that count rises while p95 approval latency rises, the control is manufacturing workarounds.

Failure modes and detection

Rubber-stamping: median decision under 30 seconds with a 99% approval rate. Detect it from the time-to-decision distribution, not the approval count. Coverage gaps at the edges: controls on tables but not exports, BI extracts, notebooks or downstream copies. Snowflake's ACCOUNT_USAGE.ACCESS_HISTORY, BigQuery's INFORMATION_SCHEMA.JOBS and Databricks' system.access.audit give access and destination records; they lag, so use them as a trend and pair them with a periodic scan of storage buckets for unmanaged copies.

No exception path: without a break-glass, urgent work routes around the policy entirely. An 8-hour just-in-time grant with next-day review keeps it inside. Aggregates still leak, so suppress any group under 5 people unless a named owner signs off. Cost with no owner: if one person does not hold both the risk and the budget for the control, the control grows.

What I'd change

Rank rules by cost over risk weight and fix the top three rather than rewriting the policy. Automate tiers 0-1, keep human judgment for irreversible or regulated decisions, put an SLA and auto-escalation on approvals, delete approvals duplicated between catalog and ticketing, then re-test after the first incident or a quarter of feedback. Success is both directions at once: fewer shadow copies, and no additional unmitigated exposure.

Curated: · Written: · Reviewed:

Difficulty: Hard