All jobs / Data engineer / Governance
Data engineer interview question · 3–5 years
Analysts need the customers table for segmentation but must not see emails or phone numbers. Two teams need the clear values.
How do you serve both without two tables?
The strongest answer
Column-level policies on the one table: dynamic masking or tokenisation returns a hash or redacted value unless the querying role is authorised, with row-level policies where needed — one table, one lineage, access decided by role
Why it works
Exactly — policy on the column, not copies of the table; the same query returns what your role is allowed to see.
What a good answer covers
- Mask at the column, by role.
- One table, one lineage.
- Policies beat copies and views.
- Access logging is not control.
Answers that fall short
- Close, but not the strongest: A view without the PII columns for analysts and the base table for the two teams
A view works until someone joins the base table; policies travel with the column wherever it is read. - Weak: Copy the table nightly with the PII columns hashed into an analytics schema
A nightly copy is a second dataset to keep in sync and a second lineage; masking policies remove the copy. - Red flag: Give everyone the table and log who queried the PII columns; we can act if someone misuses it
Detecting misuse after the fact is not access control; PII exposed once is exposed.
Who gets asked this
More Governance questions
- A director wants “data mesh” on a slide. What do you require in the room?
- How do you keep PII from being “everyone’s problem” and therefore nobody’s?
- How do you govern without becoming the team people route around?
- Self-serve created 30 unofficial revenues. What does the platform change?
- A raw landing includes national ids “for later.” What do you do?
- What is a data catalog for, and what makes it worth keeping up to date?
- Someone wants a nightly prod dump in the analytics sandbox “for realism.” What do you say?
- What must a dataset page say besides the schema?