All jobs / Data engineer / Governance
Data engineer interview question · 1–3 years
Spark logs printed a sample row with an email. What do you do?
The strongest answer
Stop sample-printing raw, purge what policy says, and log shapes or tokens — I do not keep “just this cluster’s” stdout
Why it works
Exactly. Driver logs are copies. Ephemeral is a wish. Encrypted emails are still emails for anyone with the key.
What a good answer covers
- Do not sample-print PII.
- Purge and tokenise.
- Logs retain.
- Do not hope people skip the UI.
Answers that fall short
- Close, but not the strongest: Leave it; logs are ephemeral
Log systems retain. - Weak: Encrypt the log bucket and keep printing emails
Encryption is not redaction. - Red flag: Ask people not to open the UI
Hope is not a control.
Who gets asked this
More Governance questions
- A user requests erasure. What must the pipeline do besides the app DB?
- How do you design zones so a features table cannot casually include email?
- Analysts need the customers table for segmentation but must not see emails or phone numbers. Two teams need…
- 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?