Quick revision
The short answer
In many setups the honest answer is no: the same admin role that can delete the databases can also delete their backups and snapshots. We assess it by inventorying, for all 200 databases, where backups live, how long they are kept and who can delete them, then fix it with immutable storage (object lock in compliance mode), a separate backup account with tightly restricted access and break-glass procedures, and offline or logically separate copies that we actually restore from. We monitor deletion attempts and backup policy changes, require multi-party approval for them, and report coverage and restore results to leadership as a risk metric.
What to remember
In this answer, we saw that in many setups one admin role can delete both databases and their backups. We assessed 200 databases with an inventory of backup locations, retention, keys and deletion rights, then protected copies with object lock in compliance mode in a separate backup account with separate keys and break-glass access, added logically separate copies for the most critical systems and restored from them, monitored deletion attempts with multi-party approval for policy changes, and reported coverage and restore results as a risk metric.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
In many setups the honest answer is no: the same admin role that can delete the databases can also delete their backups and snapshots. We assess it by inventorying, for all 200 databases, where backups live, how long they are kept and who can delete them, then fix it with immutable storage (object lock in compliance mode), a separate backup account with tightly restricted access and break-glass procedures, and offline or logically separate copies that we actually restore from. We monitor deletion attempts and backup policy changes, require multi-party approval for them, and report coverage and restore results to leadership as a risk metric.
Why this question is asked
Modern ransomware groups do not just encrypt servers. They spend days inside a network, find the backups and delete them first, because a victim with working backups does not pay. So the CISO's question is precisely the right one: assume the attacker has the most powerful credentials in our cloud account, what survives? Interviewers ask this at leadership level because the answer is partly technical and partly organisational, and because doing it across 200 databases needs a programme, not a script. In this answer, we will set out the threat, run the assessment, design the protections, test restores from the protected copies, add detection and controls, and report it as a risk the executives can track.
1The Threat We Are Designing For
We assume the attacker has administrator access to the production cloud account, gained through stolen credentials or a compromised pipeline. With that access they can delete database instances, delete automated snapshots, delete or overwrite objects in storage buckets, schedule key deletion in the key management service and change backup policies so that future backups stop.
The protection we want is that at least one recent, restorable copy of every important database lies outside the reach of those credentials, and that the attempt to destroy backups is noticed quickly.
2Assessing 200 Databases
We start with an inventory, which is usually the most revealing step. For every database: which backup mechanisms exist (managed service snapshots, a backup tool writing to object storage, dumps), where each copy is stored, which account and region, how long it is kept, whether it is encrypted and with which key, and which roles can delete or modify it. We also record when a restore from it was last tested.
| Finding | Why it matters |
|---|---|
| Snapshots in the same account as the database | Same admin role deletes both |
| Buckets without object lock | Backups can be deleted or overwritten |
| Backups encrypted with a key in the same account | Key deletion makes backups unreadable |
| No restore test from the backup copy | Unknown if it would work |
| Databases with no backup at all | Often small, forgotten, still important |
3Immutable, Separate Backup Storage
The core fix is to put a copy of every backup where the production admin cannot destroy it. Immutable storage does this: with object lock, each backup object has a retention date, and until that date nobody can delete or overwrite it. In compliance mode, not even the account's root user can shorten the retention, unlike governance mode, which privileged users can bypass. Managed backup services offer the same idea, for example vault locks on backup vaults.
We also move these copies to a separate backup account, ideally in a separate part of the organisation's account structure, with its own small group of administrators and no standing access from production roles. Production can write new backups into it but cannot read, change or delete existing ones. Encryption keys for the backups live in that account too, or in a separate one, so destroying the production keys does not make backups unreadable. Access for restores goes through a break-glass procedure: emergency credentials, kept sealed, whose use is logged and alerts the security team.
- Production accountdatabases, short-term snapshots for quick restores
- Backup accountwrite-only from production, object lock in compliance mode
- Backup keysseparate account, deletion needs multi-party approval
- Offline or logically separate copyperiodic export outside the cloud provider or org
- Break-glass accesssealed credentials, every use alerts security
5 layers, from the top down. Step through them one at a time.
4Separate Copies and Restores From Them
For the most critical databases, we add a copy that is logically separate from the whole cloud organisation, for example in another provider's storage or a tape service, refreshed weekly or monthly. It protects against the worst case, an attacker who controls the organisation's management account.
Then we test restores from these protected copies, not just from the convenient production snapshots. A restore drill should start from the backup account, using only the break-glass process, to prove that the copies are complete, the keys work, and the people involved can actually reach them in an emergency. Many organisations discover here that a restore would need permissions nobody has.
5Detection and Multi-Party Controls
Prevention can fail, so we watch for the attack itself. Cloud audit logs show attempts to delete snapshots, change object lock settings, disable backup plans or schedule key deletion. Those events go to the security team's alerting with high priority, because legitimate reasons for them are rare. A sudden stop in new backups is also an alert.
For changes to backup policies, retention or keys, we require approval from two people, one of them outside the database team, so a single compromised account cannot make them. Some organisations enforce this with policies that deny those actions to everyone except a role that can only be assumed through an approval workflow.
6Reporting It as a Risk Metric
Across 200 databases, this becomes a programme run in waves, starting with the systems whose loss would hurt most. To keep it visible, we report a small set of numbers to leadership monthly: the percentage of databases with an immutable copy in the backup account, the percentage restored from that copy in the last quarter, the median and worst measured restore time against target, and the number of open exceptions. Those numbers answer the CISO's question honestly at any time, and they show progress in terms an executive can track.
7Follow-up questions
Is object lock in compliance mode risky for us?
It is, in one way: if we set a retention of seven years by mistake, we pay to store that data for seven years and cannot delete it. So retention periods must be chosen carefully and tested on small buckets first. That inflexibility is exactly what protects us against an attacker.
Do replicas or multi-region setups count as backups here?
No. Replicas copy deletions and corruption instantly, and the same admin can delete them. They protect against hardware and regional failure, not against an attacker or a destructive mistake. Only copies the attacker cannot change count for this question.
How quickly do we need to recover after such an attack?
That depends on each database's tier, but we should also expect to rebuild the surrounding infrastructure, credentials and networks, possibly in a clean account. Restore drills should include that scenario for the most critical systems, because restoring into a compromised account would just give the data back to the attacker.
8Conclusion
In this answer, we saw that in many setups one admin role can delete both databases and their backups. We assessed 200 databases with an inventory of backup locations, retention, keys and deletion rights, then protected copies with object lock in compliance mode in a separate backup account with separate keys and break-glass access, added logically separate copies for the most critical systems and restored from them, monitored deletion attempts with multi-party approval for policy changes, and reported coverage and restore results as a risk metric.
Open with
I would start with an honest no-or-maybe, because in many estates the same admin role that can delete a database can also delete its snapshots and buckets. So step one is an inventory across all 200 databases: what backups exist, in which account and region, how long they are kept, which key encrypts them, who can delete them, and when we last restored from them.
Then, if they want more
That usually shows snapshots in the same account, buckets without object lock and keys that live next to the data.
Then the fixes: copy every backup into a separate backup account that production can write to but not delete from, with object lock in compliance mode so nobody, not even root, can remove it before its retention date, and keep the backup keys separate too. Access for restores goes through break-glass credentials that alert security when used.
For the most critical systems, I would add a logically separate copy outside the organisation, and run restore drills from those protected copies, not just from convenient snapshots. Then detection: alerts on snapshot deletion, policy changes, object lock changes and key deletion schedules, plus two-person approval for any backup policy change.
Finally, I would report a few numbers to leadership every month, coverage of immutable copies, restore tests passed and restore times against target, so the answer to the CISO's question is always measurable.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- PostgreSQL documentation, MySQL reference manual
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "After a ransomware incident at a peer company, your CISO asks whether your database...": https://scrivio-interview-library.netlify.app/databases/replication-and-ha/c492c308ae/