Backup and Disaster Recovery Questions
Keeping data durable and recoverable when systems fail: backup design (full, incremental, differential, and snapshot strategies; point-in-time recovery), backup verification and restore testing, retention and archival policy (including compliance retention and legal holds), encryption and key management for backups, and disaster-recovery planning measured against recovery-time and recovery-point objectives (RTO/RPO). Tests whether a candidate can design a backup strategy that actually restores, choose the right retention tier for a business's downtime and data-loss tolerance, and operate backup systems safely under failure, compliance, and ransomware threats. Distinct from code-level fault-tolerance patterns (circuit breakers, retries, bulkheads) and multi-region failover architecture, which belong to high-availability-and-disaster-recovery.
Scenario/leadership: You discover production systems were hit by ransomware and some primary backups were encrypted. Off-site copies may have been targeted as well. As the senior sysadmin, outline an incident response and recovery plan that recovers services, preserves forensic evidence, assesses backup integrity, coordinates with legal/PR, and implements measures to prevent a repeat. Include immediate containment and longer-term steps.
Sample Answer
Direct answer
Treat this as two overlapping tracks running at once, not one sequential checklist: contain and
preserve evidence first (hours), then recover services from verified-clean, verified-intact
backups while legal and PR run in parallel, then harden so it cannot repeat. The single biggest
mistake in a ransomware incident is rushing to "just restore" before you know whether the thing
you would restore from is itself compromised, or before anyone has captured evidence of how the
attacker got in.
Structured elaboration
Immediate containment (roughly the first 24 hours):
- Isolate, do not clean in place. Disconnect or network-segment affected hosts rather than
trying to remove the malware on a live, still-connected machine. Disable or rotate any shared
credentials and service accounts the ransomware could have used to spread, since ransomware
that reached one host commonly did so with valid, reusable credentials, not just a local
exploit. - Preserve forensic evidence before you touch anything further. Take disk images and memory
captures of a representative sample of affected systems before remediation begins, preserve
logs from the backup software, endpoint detection tooling, and any centralized log
aggregation, and keep a written chain-of-custody record (who touched what, when). Engage a
forensics team or incident-response retainer at this point if you have one; evidence collected
after remediation starts is far weaker. - Assess backup integrity before trusting any of it. Do not assume off-site or replicated
copies are clean just because they are off-site. Check whether the backup catalog itself shows
signs of tampering (many ransomware strains specifically target backup software and its
catalog, since a working backup is the defender's main way to avoid paying), verify the
checksums of your most recent restore points, and identify whether any immutable or air-gapped copies exist (immutable meaning the copy cannot be deleted or altered even by an administrator during its retention window, air-gapped meaning it is physically or logically disconnected from the network so a compromised credential cannot reach it), since those are the highest-confidence restore points precisely because a
compromised administrator credential cannot have altered them. - Bring legal and communications in immediately, not after recovery. A ransomware event is
very often a reportable incident with a real clock attached: many data-protection regimes
(for example, GDPR-style frameworks) require notifying a regulator within a short, defined
window (commonly cited as around 72 hours from becoming aware of the breach) once you have
enough information to characterize impact. Legal needs to start that assessment early, and
communications should own any external messaging so technical staff are not making public
statements under pressure.
Longer-term recovery and hardening (days to weeks):
- Recover services from verified-clean, verified-intact backups, in priority order. Rebuild
from a known-good image or backup rather than attempting to disinfect a compromised host in
place; you cannot fully trust a system that was under attacker control. Restore into an
isolated or quarantined network segment first, scan it, and only reconnect it to production
once you are confident it is clean. Use a pre-agreed criticality tier list so the highest-value
systems come back first rather than whichever is fastest or loudest. - Find the root cause and close it before you declare recovery complete. Identify the actual
initial access vector (a phishing email, an exposed remote-access service, an unpatched
vulnerability), rotate every credential that could plausibly have been exposed, and treat the
whole environment as compromised until proven otherwise rather than just the hosts that showed
symptoms. - Implement measures to prevent a repeat, aimed specifically at what this incident exposed.
Move toward immutable or air-gapped backup copies that no credential, however privileged, can
delete or overwrite during their retention window, verify that off-site replication is genuinely
independent (a different administrative boundary, not just a different building on the same
compromised network), and run a tabletop exercise afterward so the team has practiced this
sequence once under low-stakes conditions before needing it for real.
Trade-offs and pitfalls
A common and costly mistake is restoring data back into the same, still-infected network before
containment is confirmed, which lets the attacker re-encrypt the freshly restored data. Another
is treating "the backup job succeeded" as proof the backup is trustworthy, when a ransomware
group that had access to the environment for weeks before detonating may have already been
present when several recent backup cycles ran, meaning some of your recent "clean-looking"
backups could themselves contain the payload or already-encrypted files. That is exactly why
backup integrity assessment has to be its own explicit step, not an assumption folded into
recovery, and why identifying how far back the attacker's presence goes matters as much as
identifying which systems were hit.
Design an immutable, air-gapped backup architecture for a financial institution that needs high assurance against ransomware and tampering, while also supporting regulatory audit trails. Cover storage choices (WORM/immutable object store, tape), isolation mechanisms, key management, retention lifecycle, and an auditable recovery workflow.
Sample Answer
Direct answer
An immutable, air-gapped backup architecture for a financial institution needs a layered storage design (a fast, write-once online tier plus a genuinely offline tier for the worst case), isolation that goes beyond network segmentation to remove any standing credential production could use to alter backups, key management kept separate enough that compromising production doesn't also compromise the backups' encryption, retention timers that nobody, including administrators, can shorten, and a recovery workflow whose own audit trail is as tamper-resistant as the backups it protects.
Structured elaboration
Storage choices. Use a fast, write-once (WORM) or object-lock-enabled immutable object store as the primary tier: once written, data cannot be modified or deleted before its retention timer expires, and critically, that enforcement lives in the storage platform itself, not merely in an access-control policy that an attacker who gains elevated credentials could simply bypass. Pair this with a genuinely offline tier, tape or an equivalent physically removable medium, as the deepest, last-resort layer: properly rotated and physically disconnected media cannot be reached by any network-based attack at all, at the real cost of much slower retrieval. The combination matters: WORM object storage gives day-to-day recoverability within a reasonable time, while the offline tier is what remains trustworthy even in the scenario where the WORM tier's own control plane is somehow compromised.
Isolation mechanisms. Air-gapping in the meaningful sense here is not just a separate network; it means the backup target has no standing, continuously-open connection reachable from production, and ideally no credential production systems can use to delete or alter already-written backups even if production itself is fully compromised. Practical mechanisms include a one-way or time-boxed connection (the backup system pulling data from production on its own schedule, rather than production pushing with standing write access, or if production must push, using a narrowly-scoped, write-only credential that cannot delete or modify existing objects), network segmentation between the backup environment and production, and a separate administrative identity and credential set for the backup environment that isn't simply reused production admin access. For the offline tape tier, isolation means genuine physical removal from any network, not a logically-isolated but still-connected system.
Key management. Encryption keys protecting the immutable tier must be protected from the same compromise that could hit production; an attacker who obtains broad administrative access to production should not thereby also gain access to the backup encryption keys. This typically means a separate key-management or hardware-security-module-backed system with its own distinct access control, and ideally a dual-control or break-glass process (an emergency-only access path that bypasses normal approval steps but is heavily logged and reviewed after the fact) for any operation affecting backup encryption keys, so no single compromised credential is sufficient. Key rotation has to preserve old key versions for the full length of the retention lifecycle, since a rotated-and-destroyed key would make older immutable backups permanently unreadable, exactly the kind of gap only a real restore test against an intentionally older backup reliably catches.
Retention lifecycle. Set WORM retention timers according to the applicable regulatory requirement for each record type; financial institutions face specific statutory retention periods that vary by record type and jurisdiction, worth confirming against the actual applicable regulation for this institution rather than assuming a single figure applies uniformly. True WORM enforcement means those timers cannot be shortened by anyone, including administrators, once set. Document what happens at natural expiry (a logged, verified deletion) versus what happens if a legal or regulatory matter requires holding data past its normal expiry (the same legal-hold mechanism used elsewhere in backup retention, layered on top of and taking precedence over the WORM timer, since a hold needs to prevent deletion even past a timer that would otherwise allow it).
Auditable recovery workflow. Every recovery action, who initiated it, what specifically was restored, from which immutable copy, with hash verification both before and after the restore, gets logged to an append-only audit trail that itself carries the same immutability guarantees as the backups; an audit log that an attacker or a rogue insider could edit after the fact isn't a meaningful audit log at all. Given how rarely the deepest, offline tier should ever need to be invoked and how high-stakes a mistake or a malicious action there would be, require dual authorization for any recovery action touching that tier specifically. The audit trail itself needs to be independently and periodically reviewed by a compliance or audit function on a defined schedule, not merely generated and left unread until an incident forces someone to look.
Worked example
A financial institution's backup design keeps 90 days of WORM-locked, immutable object storage as its primary recoverable tier, restorable within hours through a documented, tested procedure, alongside a monthly full tape export that's physically removed to a secure off-site facility and never reconnected to any network after export. Backup writes reach the WORM tier through a narrowly-scoped, write-only credential that production systems use to push new backups but that has no delete or modify permission on anything already written, so even a fully compromised production environment cannot alter or remove existing immutable backups. Backup encryption keys live in a separate key-management system with its own distinct administrative access, requiring two authorized approvers for any key-related change. A ransomware incident compromises production entirely, including its own credentials, but the attacker's access provides no path to delete, modify, or decrypt anything already written to the WORM tier, since the write-only backup credential can't delete, and the encryption keys live in a system the compromised production credentials were never granted access to in the first place. Recovery proceeds from the WORM tier, with every step, who initiated it, what was restored, hash verification before and after, logged to the institution's separately-protected, immutable audit trail, which compliance reviews on its regular quarterly schedule.
Trade-offs and pitfalls
- Giving production systems standing, always-available write-and-delete access to the "immutable" tier defeats the entire point of immutability the moment production is compromised; the write-only, non-deleting credential pattern is what actually closes that gap, and it's easy to build the storage correctly while still leaving the access pattern wrong.
- An audit trail stored without its own immutability guarantee can be edited by exactly the kind of attacker or insider sophisticated enough to have reached this deep into the system in the first place, which defeats its purpose as evidence of what actually happened during a recovery.
- Dual-control requirements for the deepest tier add real friction and slow down a genuine emergency recovery; that friction is a deliberate, accepted trade-off given how rarely that tier should be touched and how severe the consequences of an unauthorized or mistaken action there would be, not an oversight to streamline away.
Design a retention lifecycle for healthcare records that must meet HIPAA compliance with auditable controls and 7-year retention. Include archival tiering, deletion policies, legal hold handling, integrity checks, and cost-control measures while ensuring records can be retrieved when needed.
Sample Answer
Direct answer
Design the lifecycle around one governing rule and one override: records age from hot to warm to cold storage automatically on a schedule tied to the 7-year retention clock, and a legal hold can freeze that clock for an individual record at any point, overriding the schedule entirely, with every transition, access, and deletion logged so the whole lifecycle is independently auditable. It is worth noting as a framing point, not a correction to the question, that the specific "7 years" figure is typically driven by state medical-records law or an organization's own retention policy rather than by HIPAA itself, which principally sets minimum standards for security, privacy, and audit controls rather than a fixed record-retention duration; the design below treats 7 years as the given business requirement regardless of which regulation ultimately drives that number.
Archival tiering
- Hot (roughly years 0-2): actively-referenced records, ongoing patient care, fast retrieval expected, standard low-latency storage.
- Warm (roughly years 2-4): infrequent access, still fast enough for a routine records request, moved to a cheaper storage class via an automated lifecycle policy keyed off record creation or last-access date.
- Cold/archive (roughly years 5-7): rarely accessed, retained principally for compliance and legal-discovery readiness, cheapest storage tier, retrieval latency of hours is an acceptable and explicit trade-off, not an accident.
Encryption is maintained across every tier, not just the hot tier, since a "cheaper, rarely accessed" tier is not a "less protected" tier.
Deletion policies
Each record gets a computed expiry date at the 7-year mark from its creation or applicable retention trigger. Deletion is a two-phase process: mark for deletion, hold for a short verification window, then irreversible purge, with an audit log entry proving what was deleted and when. This matters in both directions: an organization must be able to prove it retained records for the required period, and equally must be able to prove it actually deleted records once the retention period expired, since over-retention (keeping protected health information longer than justified) is its own compliance and breach-exposure risk, not a conservatively safe default.
Legal hold handling
A legal_hold flag, independent of the computed expiry date, overrides normal expiration entirely: a record under hold cannot be deleted regardless of its age, applied when litigation, an audit, or a compliance investigation requires preserving specific records. Removing a hold is itself a controlled, logged, authorized action, ideally requiring approval from someone other than whoever applied it, so a hold cannot be silently lifted by the same party that has an interest in a record disappearing.
Integrity checks
Periodic checksum verification of archived records, since bit rot and media degradation are real risks over a 7-year dormancy window in cold storage, not a theoretical concern. HIPAA's Security Rule also expects audit trails of who accessed what, so access logging runs continuously across all tiers, not only the hot tier where access is more common. On the same cadence as a general restore-drill program, periodically sample-restore records from cold storage to confirm they are actually retrievable, not merely present and un-corrupted on paper.
Cost-control measures
Tiering itself is the primary lever: moving 5-year-old, rarely-accessed records to the cheapest appropriate tier rather than leaving everything in hot storage indefinitely out of caution. Compress archived records where the storage format allows it. Deduplicate where legally and technically permissible. Most importantly, retain to the true legal minimum rather than defaulting to "keep everything forever" as a safety instinct, since over-retention is not free: it expands the blast radius of any future breach to include data the organization had no ongoing obligation to hold.
Worked example
Patient record R-48213 is created on 2016-01-10, giving it a computed expiry of 2023-01-10. It moves through the normal tier schedule on that basis: hot through early 2018, warm through roughly 2020, cold from around 2021 onward, all driven purely by its age, independent of anything that happens later. In 2022-08-01, an unrelated compliance audit requires preserving the record, and a legal_hold flag is set on it. The record's computed expiry of 2023-01-10 arrives while the hold is still active: the scheduled deletion sweep checks the flag, finds it set, skips deletion, and logs the skip rather than purging on schedule. The hold stays in place for over a year past that expiry date. On 2024-11-15, the audit concludes and someone other than the person who originally set the hold releases it, logging the release as its own authorized action. With no hold protecting it and its expiry already well in the past, the next scheduled sweep marks R-48213 for deletion, holds it for the short verification window, then purges it, writing an audit log entry that records the original creation date, the computed expiry, the hold window, and the actual deletion date, so an auditor can see exactly why a record with a 2023 expiry was not actually removed until 2024.
Ensuring records remain retrievable when needed
Even cold-tier records need a bounded, documented retrieval SLA agreed with legal and compliance stakeholders (for example, any record retrievable within 24 to 48 hours), since audit responses and legal discovery requests carry their own deadlines that "eventually retrievable" does not satisfy. "Cold" should mean slower and cheaper, never "practically unreachable."
Auditable controls, tying it together
Every mechanism above (tier transition, access, hold applied or removed, deletion) needs to leave an audit trail satisfying the general audit-controls expectation under the HIPAA Security Rule (the exact regulatory citation is not asserted here with full confidence and should be confirmed against current legal guidance before this design is treated as a compliance sign-off), so the full lifecycle is demonstrably governed, not just technically implemented.
Explain immutable backups and how they help mitigate ransomware and accidental deletion. Compare technology implementations such as WORM tape, object-store immutability (e.g., S3 Object Lock governance vs compliance), and immutable storage-layer snapshots. Discuss operational limitations and management practices.
Sample Answer
Direct answer
An immutable backup is one that, once written, cannot be modified, overwritten, or deleted, even
by an administrator account, until a defined retention period expires. The protection is enforced
by the storage layer itself rather than by an access-control policy that a compromised credential
could simply bypass, which is exactly what makes it effective against ransomware and accidental
deletion: it removes deletion and overwrite as an available action for any credential during the
lock period, whether the attempt is malicious or a mistake.
Structured elaboration
Why it mitigates ransomware. Ransomware that has obtained administrator or backup-operator
credentials can typically delete or encrypt over any backup those credentials can reach, defeating
the plan to simply restore. Immutability closes that path: even a fully compromised administrator
account cannot destroy a copy under an active lock, turning "the attacker also destroyed the
backups" from a real threat into a non-issue for anything currently locked.
Why it mitigates accidental deletion. The same mechanism protects against a human running the
wrong delete command or a buggy automation script wiping more than intended. The lock does not
distinguish malicious intent from an honest mistake; it simply refuses the action either way.
Comparing three implementations.
- Write Once, Read Many (WORM) tape. Media that is mechanically and logically write-once, and
typically air-gapped, physically disconnected from the network when not actively being written
to or read from. That physical disconnection means it is immune to network-based ransomware
entirely, not just logically protected. The trade-off is speed and handling: sequential access,
slower restores that involve locating and mounting the correct tape, and a real operational
discipline required to rotate and store it correctly. - Object-store immutability, for example AWS S3's Object Lock feature, which offers a
governance mode and a stricter compliance mode. Governance mode locks objects against deletion
for ordinary users but leaves an emergency override available to specially privileged accounts,
useful for legitimate corrections, though that override is itself an attack surface if the
privileged credential holding it is compromised. Compliance mode locks the object against
everyone, including the account's own administrators, strictly enforcing the retention clock with
no override at all; the trade-off is that a mistakenly long retention setting cannot be undone
either, so the retention length has to be a deliberate, carefully considered decision made up
front. - Immutable storage-layer snapshots, for instance on a storage array or backup appliance. Fast,
since it is typically block-level and local rather than tape, and integrates naturally with an
existing snapshot-based backup workflow. The trade-off is that this storage usually remains
network-reachable, unlike air-gapped tape, so its protection depends entirely on the immutability
enforcement genuinely being unbypassable at the storage layer and on the management interface
itself being hardened against privileged misuse.
Operational limitations and management practices. Locked data continues to consume and bill
for storage for the entire lock duration; it cannot be cleaned up early even if you want to, so the
retention length has to be chosen carefully, too long wastes budget, too short can be waited out by
a patient attacker. Immutability protects against deletion and overwrite, but it does not protect
against writing bad or already-compromised data as a new immutable object in the first place: if
ransomware encrypts source data and a backup job faithfully backs up the already-encrypted files as
that cycle's backup, the resulting immutable copy is preserved exactly as intended, and exactly
useless. Combine immutability with real restore verification (checking which restore points
actually predate the compromise) rather than assuming any locked copy is automatically clean, and
choose a retention length that reaches back far enough to cover the likely period an attacker sat
undetected before triggering encryption, which security research generally describes as ranging
from days to weeks depending on the case, though the exact figure varies considerably and should
not be treated as a fixed constant.
Design a bring-your-own-key (BYOK) backup encryption scheme where only the customer holds the decryption keys, stored in an enterprise KMS/HSM. Walk through the key lifecycle, and be specific: what happens to already-encrypted backups when you rotate a key, and what happens if the customer loses it?
Sample Answer
Direct answer
Bring-your-own-key (BYOK) means the customer generates and owns the root encryption key, typically
in their own key management service (KMS, a managed service for creating, storing, and rotating
cryptographic keys) or hardware security module (HSM, tamper-resistant hardware that performs
cryptographic operations without ever exposing the raw key material). The vendor's ability to
encrypt or decrypt the customer's backups depends entirely on being granted narrow, revocable
access to that key, not on holding a key of its own. That single fact determines everything about
rotation and loss below.
Key lifecycle
- Generation. The customer generates a root key in their own KMS or HSM.
- Envelope encryption. Encrypting large backup volumes directly with a tightly controlled root
key every time would be slow and hard to audit at scale. Instead, the backup software generates
a random, per-backup data encryption key (DEK), encrypts the actual backup data with that DEK,
and then encrypts, or wraps, the small DEK itself with the customer's root key. The root key
never directly touches the bulk data; it only ever wraps and unwraps small DEKs, which limits how
much data any single root-key operation exposes and keeps root-key usage cheap enough to call
frequently. - Authorization. The vendor is granted a narrow, auditable permission to call encrypt and
decrypt against the customer's key, not the raw key material itself, so every use is logged in
the customer's own KMS audit trail. - Escrow. Some organizations choose to escrow, securely deposit a backup copy of the root key
with a trusted third party or an internal break-glass vault, specifically as a hedge against the
loss scenario below. This is optional and a genuine trade-off: an escrow copy is another location
a determined attacker or insider could target, weighed against the risk of permanently
unrecoverable data with no escrow at all. - Rotation. The root key is periodically replaced with a new one, a standard security practice
and sometimes a compliance requirement. - Revocation. The customer can revoke the vendor's permission to use the key at any time, for
example when offboarding the vendor or responding to a suspected compromise. Revocation prevents
future encrypt and decrypt calls immediately; it does not retroactively undo anything already
decrypted before revocation.
What happens to already-encrypted backups when you rotate a key
Rotation does not re-encrypt the bulk backup data. Because of envelope encryption, the root key
only ever wrapped the small per-backup DEKs, never the data itself, so rotating it means new
backups going forward get DEKs wrapped with the new key version, while existing backups keep their
DEKs wrapped with the old version. The KMS must therefore keep honoring the old key version, not
truly delete it, for as long as any backup encrypted under it still needs to be restorable. In
practice, key rotation in a KMS usually means versioning, retaining every prior version available
for unwrapping, rather than true replacement. The consequence is a basis point worth stating
explicitly: your key-retention policy must be at least as long as your data-retention policy, on
the same time basis, or you will make an old but still-required backup permanently unreadable.
What happens if the customer loses the key
Because BYOK means the vendor never independently held usable key material, losing the root key,
with no escrow copy and no other recoverable path to the wrapped DEKs, makes the encrypted backup
data permanently unrecoverable. This is by design, not a bug: no one, including the vendor, holds
a master key capable of decrypting it. That is precisely the trade-off of true customer-held keys:
it is the strongest available guarantee against the vendor, or anyone who compromises the vendor,
reading your data, and it is equally strong against your own ability to recover if the key is
mismanaged. Practical mitigation is a mandatory escrow or break-glass procedure with strict,
multi-party access controls, or accepting the loss risk as a documented, deliberate trade-off in
exchange for the security guarantee.
Functional limitations worth weighing alongside the security benefit
BYOK has a real functional cost beyond the lifecycle mechanics above. Cross-customer or
cross-backup deduplication, finding identical chunks of data across different backups to store
them once, generally stops working across customers using different keys, since two customers'
identical files now encrypt to different ciphertext under different keys and look like unrelated
random data to a deduplication engine, which can materially increase storage cost in a
multi-tenant repository. Similarly, any server-side search or indexing feature that lets a customer
search inside backed-up content without a full restore generally cannot operate on data it cannot
decrypt, so BYOK customers often lose that convenience unless the vendor has specifically
architected search to run inside a boundary the customer still controls. Both are genuine,
sometimes underappreciated costs of BYOK that deserve to be weighed against its security benefit
rather than treated as free.
Unlock Full Question Bank
Get access to all 8 Backup and Disaster Recovery interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.