Skip to content
RED SAGSkills
easyDatabase Administrator interview question

What basic steps would you take to secure a new production database?

What the interviewer wants to hear

  • Keep it on a private network and restrict access with firewall rules
  • Use strong authentication such as scram-sha-256 and remove default or shared accounts
  • Give each application its own least-privilege role
  • Require TLS in transit and encrypt data and backups at rest
  • Patch regularly and enable auditing of logins and privileged actions

Model answer

First I make sure the database is not reachable from the internet: it lives in a private subnet with security group or firewall rules that only allow the app servers and admin hosts. Authentication uses strong methods like scram-sha-256 or certificates, default accounts are removed, and secrets are stored in a vault, not in code. Each application gets its own role with only the privileges it needs, so the app cannot drop tables, and humans use personal accounts. I require TLS for connections and enable encryption at rest for data files and backups. Then I keep the server patched to the latest minor version, log connections and privileged actions with something like pgAudit, and review who has access regularly.

Can you answer it under time pressure?

Take a timed easy round and get scored on every answer.

Start mock interview

More easy Database Administrator questions