All jobs / Database administrator / Security
Database administrator interview question · 0–1 years
The release is tomorrow and the new service fails with a permissions error on start-up.
A developer asks for the application account to have superuser or db_owner rights “so nothing blocks the release”.
The strongest answer
I grant the application exactly the objects and operations it uses, and separate accounts for migrations and for the app’s runtime
Why it works
Exactly — least privilege, and a split between the account that changes schema and the one that serves requests.
What a good answer covers
- Grant what is used, nothing more.
- Separate migration and runtime accounts.
- Temporary grants become permanent.
- Superuser in an app is a breach waiting.
Answers that fall short
- Close, but not the strongest: I grant it for the release and plan to tighten later once things settle
“Later” rarely comes; the elevated grant becomes the baseline. - Weak: If the team owns the database it is fine for their app to be the owner
Ownership of the data is not the same as an over-privileged runtime credential. - Red flag: Superuser is the simplest — permission errors cost more time than they are worth
A compromised app with superuser rights is a compromised database.
Who gets asked this
More Security questions
- The whole team logs in with one shared admin account. What is wrong, and what do you propose?
- 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?