Back to candidates
Interview PrepFor Candidates

How to Prepare for a Database Administrator Interview

Every stage of the Database Administrator hiring process, what to study for each, a week-by-week plan, and the questions to expect with model answers.

Cohesyve · Practice for candidates

Preparing for a Database Administrator role? Start by finding out where you stand.

Import the actual job you're going for, run a simulation built from it, and get a scored report showing which of these areas you're weakest in — before you spend weeks studying the wrong thing.

3

free assessments

$0

no card required

Full

scored report every run

Every

question type included

3 free assessments · No card required · Pro from $16/mo

Overview

Database administrator interviews concentrate on the two things that cost organisations the most: a query that will not scale and a restore that has never been tested. Expect a technical screen on your primary engine, a practical performance-tuning exercise, a backup and recovery scenario, and questions about how you handle change requests from teams under delivery pressure. The candidates who do well can read an execution plan, state a recovery objective with confidence, and describe an outage where the recovery process itself was the problem.

The hiring process, stage by stage

1

Recruiter screen

Covers the engines you have administered, whether the estate is on-premises, managed cloud or both, database sizes, and whether you have carried out-of-hours support.

How to prepare: Prepare a summary naming your primary engine and version, estate size, largest database, replication topology and your on-call arrangement. Distinguish clearly between managed services you configured and instances you fully administered.

2

Technical fundamentals interview

Questions on indexing, transactions and isolation levels, locking and blocking, and the internals of your primary engine. Interviewers probe for whether you understand the mechanisms or have memorised remedies.

How to prepare: Revise index structures and when each type helps, the isolation levels and the anomalies each permits, and how your engine handles multi-version concurrency or locking. Be able to explain why a query chooses one plan over another.

3

Performance troubleshooting exercise

A slow query, a blocking chain, or a server under load, presented with an execution plan or wait statistics. You are scored on diagnostic order rather than on knowing the answer immediately.

How to prepare: Practise reading execution plans until the expensive operators are obvious at a glance. Rehearse a method: identify the wait or the costly operator, check statistics and cardinality estimates, then consider indexing or query rewriting before hardware.

4

Backup, recovery and high availability scenario

A tabletop exercise: corruption discovered at midday, a dropped table, a failed failover. You are asked what you do, in what order, and how much data is lost.

How to prepare: Be fluent in your engine's recovery model: full, differential and log backups, point-in-time recovery, and how long a restore of a large database actually takes. Prepare a real example of a restore you performed and how you verified it.

5

Change management and stakeholder interview

Questions about how you handle a developer wanting a schema change on a busy table, how you review migrations, and how you say no without becoming a bottleneck.

How to prepare: Prepare an example where you enabled a change safely that could have caused an outage, and one where you refused and were right. Practise explaining a locking risk to a developer in terms of user impact rather than engine internals.

What to study

Indexing and query performance

The practical round is almost always a tuning exercise, and indexing decisions are where the largest performance gains and the worst regressions both come from.

B-tree index mechanics, composite index column order and covering indexesReading execution plans: scans versus seeks, join algorithms, and where cardinality estimates go wrongStatistics, parameter sniffing and plan stabilityThe cost of over-indexing on write throughput and storage

Transactions, isolation and concurrency

Blocking and deadlock questions appear in almost every interview, and vague answers reveal a lack of production exposure quickly.

Isolation levels and precisely which anomalies each permitsMulti-version concurrency control and the cost of long-running transactionsDeadlock detection, reading a deadlock graph, and the ordering discipline that prevents themLock escalation and why a large batch update blocks an application

Backup, recovery and business continuity

This is the area where failure is unrecoverable, and interviewers ask about restores rather than backups on purpose.

Recovery point and recovery time objectives, and how backup strategy follows from themPoint-in-time recovery mechanics and the log chain your engine depends onRestore testing, verification and how long a large restore genuinely takesCorruption detection, page-level repair options and when the only answer is a restore

High availability and replication

Availability designs are commonly misunderstood as backups, and interviewers check whether you know what replication does not protect against.

Synchronous versus asynchronous replication and the data loss each impliesFailover mechanics, automatic versus manual, and split brain riskRead replica lag and the application behaviour it causesWhy replication is not a backup, since deletions and corruption replicate faithfully

Schema change and operational safety

Most database-caused outages come from a migration, and teams want an administrator who makes safe change fast rather than slow.

Which DDL operations lock in your engine and version, and which are onlineExpand-and-contract migrations for zero-downtime schema changeBatched backfills and how to avoid long-running transactions and replica lagPartitioning, archiving and retention as alternatives to unbounded table growth

Cohesyve for candidates

Practise a Database Administrator assessment before the real one

Run the same AI job simulations companies use to evaluate applicants. You get a scored report showing where you're strong and where you're not, plus what to work on.

Your preparation plan

Four weeks out

Rebuild engine depth and be honest about your estate experience

  • •Revise indexing and execution plan reading on your primary engine until diagnosis is quick rather than laborious
  • •Write out your current estate: engines, versions, sizes, replication topology, backup schedule and recovery objectives
  • •Refresh the second engine named in the job description if it is not the one you use daily
  • •Practise the recovery scenarios you have never actually run, at least on a test instance

Two weeks out

Practise tuning and recovery scenarios aloud

  • •Work through three tuning exercises out loud, narrating the diagnostic order rather than jumping to the fix
  • •Run two recovery tabletops: a dropped table at midday and corruption discovered after a week of backups
  • •Prepare a story about a migration you made safe on a busy table, including the locking risk you avoided
  • •Prepare the figures you can share: database sizes, transaction rates, restore times, replica lag

The final week

Rehearse end to end and prepare the stakeholder answers

  • •Sit one full timed assessment rather than isolated questions, since the tuning round penalises disorganised diagnosis
  • •Practise explaining a locking or performance risk to a developer in terms of user impact
  • •Prepare your questions about restore testing, on-call load and who reviews schema changes
  • •Close the single weakest area your practice revealed rather than revising familiar ground

The day before and the day of

Keep your diagnostic method sharp and stop adding material

  • •Test your setup: screen share, a query tool if one is provided, and a scratch document
  • •Reread your estate summary and recovery notes once, then stop
  • •Write your tuning opening on a card: what is it waiting on, what does the plan cost, are the estimates right
  • •Plan to state your recovery point and time objectives explicitly in any recovery scenario before acting

Questions to expect

“A query that ran in two seconds now takes two minutes. How do you diagnose it?”

What they're really asking: Whether you have a diagnostic order, or whether you start adding indexes hopefully.

How to answer: Ask what changed first — data volume, a release, statistics, or the plan itself. Then examine the current execution plan against the expected one, looking for a scan where a seek used to be and for cardinality estimates that diverge sharply from actual rows. From there branch: stale statistics, parameter sniffing producing a plan suited to a different value, or genuine data growth past a tipping point. Say what you would do to mitigate now versus fix properly.

“How do you decide whether to add an index?”

What they're really asking: Whether you weigh write cost and existing coverage, or add one index per slow query.

How to answer: Say you start by checking whether an existing index can be extended rather than duplicated, since near-identical indexes are a common estate problem. Justify the column order from the predicates and the sort, consider whether covering the query avoids a lookup, then weigh the write and storage cost on a table with heavy inserts. Finish by saying you would verify with the plan and actual runtime afterwards, not assume improvement.

“You discover data corruption that has been present for a week. What do you do?”

What they're really asking: Whether you understand that backups age out and that replication copies corruption faithfully.

How to answer: First establish scope and whether the database is still serving — the immediate question is whether to stop writes. Then check whether the corruption predates your oldest clean backup, since that determines whether restore is even available. Explain the options in order of data loss: restore to a clean point and replay, repair affected pages if the engine supports it, or reconstruct from an upstream source. State plainly that a replica will have the same corruption, and that you would involve the data owner in the loss decision rather than making it alone.

“A developer needs to add a column to a table with a hundred million rows. How do you handle it?”

What they're really asking: Whether you are a bottleneck or an enabler, and whether you know your engine's locking behaviour precisely.

How to answer: Start with what the operation actually does in that engine and version — adding a nullable column without a default is often metadata-only, while adding a default or changing a type may rewrite the table and hold a lock. Propose the safe path: metadata-only change, then a batched backfill in small transactions with monitoring for replica lag, then the constraint applied afterwards. Offer to run it during a low-traffic window and to abort cleanly if lag rises.

“How do you know your backups work?”

What they're really asking: Whether you test restores or trust a green tick on a backup job.

How to answer: State clearly that a successful backup job proves nothing and that only a completed restore does. Describe scheduled restores to a separate instance with verification of both integrity and data content, plus timing the restore so your recovery time objective is measured rather than assumed. Mention the parts that catch people out: the log chain being broken by an ad hoc backup, and encryption keys or credentials not being available at restore time.

“How would you approach a database server that is generally slow?”

What they're really asking: Whether you start from evidence about waits, or from a checklist of configuration settings.

How to answer: Begin with what the server is waiting on, using wait statistics to distinguish CPU pressure, IO, locking and memory. That tells you where to look rather than guessing. Then find the highest-cost queries by total resource consumption rather than by individual duration, since a cheap query run constantly often dominates. Address the top offenders through indexing or rewriting, and treat configuration and hardware as the last resort after the workload is understood.

What to bring as evidence

  • A tuning example with the before and after runtime and the specific change that produced it

  • A restore you actually performed, including how long it took and how you verified the data

  • A migration on a large table you executed without downtime, and the locking risk you avoided

  • A description of your current estate: sizes, topology, backup schedule and recovery objectives

  • An incident where the database was implicated, and your role in diagnosis and recovery

  • Evidence of proactive work such as index consolidation, retention policy or capacity planning

Common mistakes

  • Talking about backup schedules without ever having tested a restore

  • Adding an index per slow query without checking existing coverage or write cost

  • Treating replication as a backup, which fails the moment the question involves a deletion

  • Jumping to hardware or configuration changes before understanding the workload

  • Blocking schema changes on principle rather than offering a safe path to make them

  • Being vague about engine version behaviour when locking answers depend on it entirely

Questions to ask them

  • ?

    When did you last perform a full restore from backup, and how long did it take?

  • ?

    Who reviews schema migrations before they reach production, and can that person say no?

  • ?

    What are the recovery point and recovery time objectives for the most critical database, and have they been tested?

  • ?

    How is out-of-hours support arranged, and how often is the database the cause of a page?

  • ?

    How much of the estate is managed cloud services versus instances this team fully administers?

  • ?

    What is the largest performance problem the team currently lives with, and what has prevented it being fixed?

Frequently Asked Questions

Is the database administrator role disappearing because of managed cloud services?

The mechanical work has shrunk but the judgement has not. Managed services handle patching and failover mechanics while leaving data modelling, query performance, cost, migration safety and recovery strategy firmly with a human. Interviews reflect that shift by weighting design and tuning over installation.

Do I need to know more than one engine?

Depth in one is more valuable than shallow familiarity with several, but most estates are mixed, so be able to reason about the differences. If a second engine is named in the job description, learn its concurrency model and backup mechanics rather than trying to learn everything.

How much SQL development is expected?

Enough to rewrite a poorly performing query and to review a developer's migration critically. You are not expected to build the application data access layer, but an administrator who cannot suggest a better query has limited influence.

How should I answer if I have never handled a serious corruption event?

Say so, then walk through the process you would follow and any restore or recovery work you have done in test. Interviewers are more concerned that you know replication will not save you and that you would involve the data owner in a loss decision than that you have lived through it.

Can I practise the technical stage before the real interview?

Yes, and the tuning round in particular rewards a rehearsed diagnostic order. Cohesyve builds a simulation from a real database administrator posting and gives three free scored assessments, with a report showing where your diagnosis went off track.

Prepare for another role

Cohesyve · Practice for candidates

Don't walk in guessing. Find out where you stand first.

Three free scored practice runs, a full report on every one, and a learning pathway built from what you actually got wrong. No card required.

3

free assessments

$0

no card required

Full

scored report every run

Every

question type included

3 free assessments · No card required · Pro from $16/mo

For hiring teams

Hiring for a Database Administrator role? See how your applicants perform before you spend interview time.

Practise before it counts

3 free assessments

Start practising free