Interview Prep

Database Administrator Interview Questions & Answers (with Model Answers)

Database Administrator interviews focus on data integrity, recoverability, performance tuning, and how you protect production under pressure. Expect questions on backup strategy, indexing, replication, and disaster recovery alongside real query-tuning scenarios. This page gives you realistic questions with model answers a seasoned DBA would deliver.

Written & reviewed by the CVWon Editorial Team · Updated June 2026

Build Your CV

The STAR Method

Structure your behavioural and situational answers below with the STAR method — four steps that turn a vague reply into a concrete, memorable story.

S

Situation

Set the scene — briefly describe the context and your role.

T

Task

Explain the challenge or responsibility you faced.

A

Action

Detail the specific steps you personally took.

R

Result

Share the measurable outcome — ideally with numbers.

Questions & Answers

Interview Questions & Model Answers

Prepare for these commonly asked questions with detailed model answers.

Why This Is Asked

Recoverability is a DBA's first duty; they want a requirements-driven, tested plan.

Model Answer

I start from the business requirements, defining the recovery point and recovery time objectives, then choose a mix of full, differential, and transaction-log backups to meet them. I store copies offsite or in another region and encrypt them. Crucially, I test restores regularly, because an untested backup is just a hope, not a strategy. I document the recovery runbook so anyone on call can execute it.

Mention RPO and RTO and stress that you test restores, not just backups.

Why This Is Asked

Query tuning is a core daily skill and reveals depth of optimizer knowledge.

Model Answer

I capture the execution plan to see where time and rows are spent, looking for table scans, missing indexes, or bad cardinality estimates. I check wait statistics and whether the issue is CPU, I/O, or locking. Then I test targeted fixes such as a covering index, rewritten predicate, or updated statistics, measuring before and after. I avoid blanket changes and validate that the fix does not regress other queries.

Always start with the execution plan and back changes with measurements.

Why This Is Asked

They want you to distinguish availability from durability and design to requirements.

Model Answer

I use replication or clustering technologies such as Always On availability groups, streaming replication, or a managed multi-AZ setup with automatic failover. I separate it from backups, since HA protects against node failure while backups protect against data corruption and human error. I test failover regularly and monitor replication lag. The architecture matches the agreed RTO rather than gold-plating beyond need.

Explicitly separate high availability from backup and recovery.

Why This Is Asked

They want proof you stay methodical and protect data under real pressure.

Model Answer

A bad bulk update corrupted a key table without a transaction wrapper. I isolated the database, identified the last clean transaction-log point, and performed a point-in-time restore to a side instance to extract the correct rows. I reconciled them back into production with minimal downtime, then mandated transactions and staging for bulk operations. No data was permanently lost.

Show calm process plus a preventive change afterward.

Why This Is Asked

DBAs guard sensitive data, so security discipline is essential.

Model Answer

I apply least privilege with roles rather than individual grants, encrypt data at rest and in transit, and audit privileged access. I keep credentials out of application code using secrets management and rotate them. I separate duties so no single account can both change data and erase its audit trail. Regular access reviews catch privilege creep.

Lead with least privilege and auditing of privileged accounts.

Technical

What Technical Interview Questions Does a Database Administrator Get Asked?

Expect these role-specific technical questions during your interview.

A clustered index defines the physical order of rows in the table, so there can be only one per table and it is typically on the primary key. A non-clustered index is a separate structure with pointers back to the rows, and you can have many per table. Clustered indexes speed range scans on the key while non-clustered indexes help lookups on other columns.

Atomicity means a transaction completes fully or not at all; Consistency means it moves the database from one valid state to another respecting constraints; Isolation means concurrent transactions do not interfere with each other's intermediate state; Durability means committed changes survive crashes. Together they guarantee reliable processing even under failure and concurrency.

Normalization organizes data to reduce redundancy and update anomalies, typically to third normal form, by splitting data into related tables. You denormalize deliberately for read-heavy workloads where joins are costly, accepting controlled redundancy to improve query performance. The trade-off is faster reads versus more complex writes and consistency management.

Locks enforce isolation by preventing conflicting concurrent access, but a deadlock occurs when two transactions each hold a lock the other needs. The engine detects this and kills one as the victim. To reduce deadlocks I keep transactions short, access objects in a consistent order, and use appropriate isolation levels, and I analyze deadlock graphs to fix the offending access pattern.

Synchronous replication confirms a commit only after the replica has written it, guaranteeing zero data loss but adding latency tied to the replica's distance. Asynchronous replication commits on the primary first and ships changes after, offering lower latency but risking some data loss on failover. The choice balances durability against performance and geography.

Situational

What Situational Interview Questions Should a Database Administrator Prepare For?

Behavioural and situational scenarios you may encounter.

Situation: monitoring showed transaction-log files filling rapidly toward a full disk. Task: I had to act before the database stopped accepting writes. Action: I diagnosed a long-running uncommitted transaction blocking log truncation, worked with the developer to commit it safely, took a log backup, and added alerting at a lower threshold. Result: the database never went read-only and we avoided an outage that would have hit thousands of users.

Situation: a reporting query timed out and dragged down the whole instance. Task: I needed to restore performance without breaking other workloads. Action: I read the execution plan, added a covering index, updated stale statistics, and moved heavy reporting to a read replica. Result: the query went from timing out to running in seconds and overall instance load dropped substantially.

Situation: a storage failure took a production database offline at peak. Task: I had to restore service within the agreed RTO. Action: I failed over to the standby, validated data consistency, and communicated status updates every few minutes to stakeholders. Result: we were back online inside the target window, and the tested failover plan proved its worth.

Situation: a large table needed a new indexed column without downtime. Task: I had to apply it safely on a busy production database. Action: I used an online index operation, batched the backfill in small transactions during low-traffic hours, and monitored locking and replication lag throughout. Result: the change completed with no user-visible impact and no blocking incidents.

Preparation

Preparation Tips

1

Be ready to read and explain an execution plan, identifying scans, seeks, and join methods on the spot.

2

Memorize RPO and RTO definitions and be able to design a backup tier that meets a stated objective.

3

Practice writing and tuning complex SQL, including window functions, CTEs, and index design for a given query.

4

Review the specific platform in the posting, whether SQL Server, PostgreSQL, Oracle, or MySQL, and its native HA and backup tooling.

5

Prepare a recovery war story that shows calm, methodical handling and a preventive follow-up action.

How to Answer: "What Are Your Salary Expectations?"

I have researched Database Administrator compensation for this market, platform specialization, and seniority, so I am thinking in terms of a realistic range rather than a single figure. Given my experience protecting production data, tuning performance, and running tested recovery plans, I am targeting the upper-middle of that band. The exact number depends on the on-call expectations, the scale of the estate, and the wider package, and I am flexible within reason. If you can tell me the band you have set aside, I am confident we will find a fair point of agreement.

FAQ

Frequently Asked Questions

Depth in one major platform like SQL Server, Oracle, or PostgreSQL is valuable, but breadth across relational and cloud-managed databases is increasingly expected. Tailor your emphasis to the platform named in the job posting while showing transferable fundamentals.

Very important, as managed services like RDS, Azure SQL, and Cloud SQL are now mainstream. Understand how managed backups, failover, and scaling differ from on-premise administration and where you still own tuning and design.

Almost always, with joins, aggregations, and often query tuning. Practice writing correct SQL and explaining how you would index and optimize it.

Frame everything around recovery, not just taking backups, and emphasize that you regularly test restores. Reference RPO and RTO to show you align strategy to business requirements.

Calmness under pressure, clear communication during incidents, and the discipline to follow change control. DBAs are trusted with critical data, so interviewers look for reliability and careful judgment.

Ready to Ace Your Interview?

Build Your CV

Related

Related Job Titles

Cybersecurity Analyst

Technology

Cloud Engineer

Technology

Machine Learning Engineer

Technology

Mobile Developer

Technology

iOS Developer

Technology

Android Developer

Technology