All jobs / Database administrator / Security
Database administrator interview question · 1–3 years
HR asks who changed a salary value last Tuesday. Can you answer, and what would you set up?
The strongest answer
Only if auditing was already on — so I enable auditing for sensitive tables, with named accounts, and ship the audit trail off the server where the auditor cannot alter it
Why it works
Exactly — you cannot audit retrospectively; set it up for sensitive data and protect the trail.
What a good answer covers
- Auditing must be on beforehand.
- Named accounts make it meaningful.
- Store the trail off the server.
- Transaction logs are not an audit.
Answers that fall short
- Close, but not the strongest: I would check the application logs, which usually record changes
Application logs miss direct database access, which is exactly what an audit is for. - Weak: The transaction log has the change, so I can always reconstruct it
Logs are recycled and rarely map cleanly to a person; they are not an audit trail. - Red flag: That is not a database question; HR should ask the application team
Sensitive data access is squarely a DBA responsibility.
Who gets asked this
More Security questions
- Developers want a copy of the production database in staging. Conditions?
- 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…