Skip to content
RED SAGSkills
hardDatabase Administrator interview question

Your company must meet compliance rules (such as PCI DSS or GDPR) for a database holding personal and card data. What controls do you put in place?

What the interviewer wants to hear

  • Data classification and minimisation; tokenise or avoid storing card data
  • Least-privilege roles, named accounts, MFA and regular access reviews
  • Encryption in transit and at rest, including backups, with managed keys and rotation
  • Audit logging of access and privileged actions to tamper-resistant storage
  • Masked or synthetic data outside production, retention and deletion processes

Model answer

I would start by classifying data and storing as little as possible: card numbers should be tokenised by the payment provider rather than stored, and personal data limited to what is needed. Access follows least privilege, with separate roles per application, named accounts for people, MFA through SSO or IAM authentication, and quarterly access reviews. Data is encrypted in transit with TLS and at rest, including backups and replicas, using a key management service with rotation, and the most sensitive columns can use application-level encryption. I enable audit logging, for example pgAudit, for logins, DDL and access to sensitive tables, shipped to tamper-resistant storage the DBAs cannot edit. Non-production environments get masked or synthetic data. Finally, retention and deletion jobs support rules like the right to be forgotten, and everything is documented for auditors.

Can you answer it under time pressure?

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

Start mock interview

More hard Database Administrator questions