All jobs / Database administrator / Security
Database administrator interview question · 3–5 years
The request arrives as a ticket asking for “a fresh prod dump in staging by Monday”.
Developers want a copy of the production database in staging. Conditions?
The strongest answer
Only with personal data masked or synthesised on the way in, the same access controls as production on the copy, and a retention limit — or, better, a generated dataset with production’s shape
Why it works
Exactly — a copy of personal data is still personal data.
What a good answer covers
- Mask or synthesise PII.
- Copies inherit the rules.
- Limit retention.
- Prefer generated data.
Answers that fall short
- Close, but not the strongest: Fine, as long as staging is inside the company network
Network location does not change what data it is or who can see it. - Weak: Fine, staging is not production so the rules do not apply
Privacy obligations follow the data, not the environment label. - Red flag: Give them a read-only login to production instead
Developer access to live personal data on production is worse, not better.
Who gets asked this
More Security questions
- How do you rotate the application’s database password without downtime?
- On an instance you have inherited, permissions are granted directly to dozens of named accounts, each set…
- At three in the morning the application account starts running large SELECTs over the customer table from an…
- A new market requires that customer data stays within its borders. Impact on the database platform?
- An auditor asks you to prove who can read personal data and who has read it. How do you answer?
- What is the difference between a server-level login and a database-level user, and why does it bite you after…
- A developer asks for the application account to have superuser or db_owner rights “so nothing blocks the…
- The whole team logs in with one shared admin account. What is wrong, and what do you propose?