All jobs / Data engineer / Governance
Data engineer interview question · 0–1 years
A DAG file contains the warehouse password. What do you do?
The strongest answer
Rotate, move it to the secret store, and treat the commit as a leak — a DAG is still git
Why it works
Exactly. Rotate and vault. Team-only git is still copies. Variables named password are still secrets in a UI.
What a good answer covers
- Rotate the leaked secret.
- Inject from a vault.
- DAGs are git.
- Do not store plaintext in Variables.
Answers that fall short
- Close, but not the strongest: Leave it; only the data team clones
Clone lists grow. - Weak: Base64 the password
Encoding is not a secret. - Red flag: Put it in an Airflow Variable named password in plaintext
The UI is another log.
Who gets asked this
More Governance questions
- How do you keep PII from leaking into a “features” table for a model?
- Spark logs printed a sample row with an email. What do you do?
- 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?