All jobs / Database administrator / Security
Database administrator interview question · 0–1 years
The password for the shared `admin` login is pinned in the team chat channel.
The whole team logs in with one shared admin account. What is wrong, and what do you propose?
The strongest answer
There is no accountability and no way to revoke one person — I propose named accounts, roles for the common grants, and rotating the shared password out
Why it works
Exactly — individual identity plus roles gives both auditability and clean revocation.
What a good answer covers
- Named accounts for people.
- Roles for shared grants.
- Revoke a person, not a password.
- Audit needs a real actor.
Answers that fall short
- Close, but not the strongest: It is not ideal, so I would at least change the password when someone leaves
Rotation on departure helps but leaves every action anonymous. - Weak: It is convenient and the team is small, so it is acceptable for now
Small teams grow and shared secrets leak the same way. - Red flag: Nothing — auditing who did what is the job of the ticketing system
Tickets record intentions; the audit log needs the actual actor.
Who gets asked this
More Security questions
- Security asks for “the database to be encrypted”. What do you actually put in place?
- HR asks who changed a salary value last Tuesday. Can you answer, and what would you set up?
- 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?