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.
You manage backups for a 24/7 transactional service with unpredictable peak traffic worldwide. Propose a scheduling strategy for full and incremental backups that minimizes production impact. Discuss use of snapshots, IO throttling, staggered windows, and traffic-aware scheduling.
Sample Answer
Direct answer
Abandon the idea of a fixed "backup window," since it does not exist for a genuinely 24/7 global service, and instead run continuous, low-impact incremental backups sourced from replicas where possible, using copy-on-write snapshots so the disruptive part of a backup (the freeze moment) is milliseconds, throttled I/O so the background copy never competes head-on with production for bandwidth, staggered start times so the fleet's backup load does not spike all at once, and load-aware scheduling so heavier work waits for genuine troughs rather than a fixed clock time that may land during a regional peak.
Snapshots
Use storage-layer, copy-on-write snapshots (cloud block-storage snapshots, LVM, ZFS) rather than application-level dumps for the bulk of backup work. A copy-on-write snapshot is a near-instant metadata operation; the actual data copy-out to the backup target happens asynchronously afterward. This decouples "the point captured" from "the bytes moved," so the genuinely disruptive part of the operation, the brief freeze needed to get a consistent point, stays tiny even under real load, and the slow part (moving bytes) can be managed independently with throttling.
I/O throttling
Rate-limit the background copy-out or upload process, most snapshot and backup tools expose a bandwidth or IOPS cap, so it can never saturate the storage or network capacity production needs. A single static cap is the wrong tool for "unpredictable peak traffic" specifically: sized for average load, it is too aggressive during a real peak and needlessly conservative during a trough. Tie the throttle to a live feedback signal instead, for example automatically backing off if p99 production latency (the response time that 99% of requests are faster than, which surfaces the worst-case tail an average would hide) or storage queue depth crosses a threshold, so the backup process adapts to what is actually happening rather than to a schedule's assumption about what should be happening.
Staggered windows
Even a service with genuinely no zero-traffic period usually has relative troughs somewhere in its footprint, lower aggregate load at certain hours, or lower load on a specific shard or region even while another region is at peak. Stagger backup start times across shards, replicas, and regions so the heaviest I/O phase of no two large backup jobs lands on the same underlying storage or network path at once. A fixed schedule that kicks every shard off at the same clock time (say 00:00 UTC) does not solve the "everyone backs up at once" problem, it just relocates it to a different, equally busy moment for the aggregate system.
Traffic-aware scheduling
Rather than gating on wall-clock time, gate the heavier, non-urgent work, full backups in particular, since they cost more I/O than incrementals, on a live load signal specific to that shard or region: start when the current request rate, CPU, or IOPS drops below a rolling baseline for that unit, and pause or slow automatically if load spikes mid-run. Reserve fixed-time-only scheduling for the lightweight, always-must-run work, continuous incremental or write-ahead-log shipping, that has to happen regardless of load in order to hold whatever RPO target the service has committed to.
The highest-leverage move: back up from a replica, not the primary
Where the topology allows it, source the actual backup or snapshot from a read replica or secondary rather than the primary serving live writes. This means even a mistake in the throttling logic degrades a non-critical replica instead of the primary write path, which is the single biggest lever for "minimizes production impact," since it removes the entire backup I/O burden from the path that matters most, rather than merely managing that burden more carefully while it stays on the critical path.
A backup job has reported 'success' every night for six months. What would make you confident that backup is actually restorable if you needed it right now, and how would you build that confidence on an ongoing basis?
Sample Answer
Direct answer
A backup job reporting success typically only proves the process ran to completion without an
unhandled error. It says nothing about whether the resulting data is complete, uncorrupted, or
usable in a real restore. Confidence has to come from evidence that recovery actually works, built
both as a right-now check and as an ongoing habit, not from trusting the job log.
Structured elaboration
What would make you confident right now.
- Checksum or hash verification. Confirm the checksum of the data as written matches the
checksum of the data as read from source. This catches corruption in transit or at rest, but not
logical or application-level correctness. - Catalog completeness. Confirm the backup catalog lists the expected number of files, objects,
or databases, not a partial subset. This is what catches a job that technically succeeded but
only captured 80% of the source because of a permissions error on one folder that got logged as a
warning rather than a failure, which the daily job-status review would need to be looking for
specifically. - An actual restore into an isolated, scratch environment, followed by an application-level
check: mount the filesystem, attach the disk, open the database and run a query, or boot the
virtual machine. This is the only step that tests the entire chain at once, the backup software,
the media, the restore procedure, and compatibility with the target environment, and it is the
only one of the three that can catch a failure the other two would both pass.
How to build that confidence on an ongoing basis.
- Scheduled restore testing on a rotation, covering every system on a fixed cadence rather than
testing once and assuming it still holds. Software versions, storage drivers, and licensing all
drift over time, and a restore path that worked a year ago can silently break without any
backup job ever reporting an error. - Automated or synthetic verification where the backup product supports it: many can auto-mount
a backup image in an isolated sandbox and run an automated health check without a human running a
manual restore every time, making frequent, even nightly, verification affordable at scale. Treat
this as a complement to periodic real restore drills, not a full replacement, since it typically
validates the backup software's own read-back rather than a fully independent restore into a
clean target. - Track restore-test results as a trend, not a single pass or fail, so a slow drift, restore
times creeping upward, or an increasing rate of "restore succeeded but the application check
failed", becomes visible before it turns into a crisis. - Trigger an out-of-cycle restore test on any material change: new backup software version,
storage migration, or application upgrade, rather than waiting for the next scheduled test.
Worked scenario
During a scheduled monthly restore drill, a database backup mounts cleanly and its checksum
matches. The application-level check then fails: a stored procedure the application relies on
references a linked server that no longer exists in the restore target. The checksum was correct
and the mount succeeded; only the application-level check caught this. That is exactly the class of
failure a green backup job would never reveal, which is why "restorable" has to mean "passes an
application-level check", not just "the bytes match."
Trade-offs
Full restore drills cost real time and infrastructure, which is why many teams under-invest here.
Synthetic verification is a reasonable, cheaper middle layer for frequent coverage, but it should
never be the only check performed, since it usually cannot catch the kind of environment-specific
or dependency-level failure the worked scenario above describes.
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.
Design a backup and disaster recovery plan for a critical Kubernetes cluster hosting stateful workloads. Include etcd backup frequency and storage, persistent volume snapshot strategies (CSI), backing up and restoring StatefulSets, cluster control plane recovery, and how you would validate a namespace-level restore versus full-cluster recovery.
Sample Answer
Direct answer
A Kubernetes cluster's backup and disaster recovery plan has to cover three genuinely different
things that fail independently: the cluster's own state (etcd), the application data sitting in
persistent volumes, and the control plane itself. Back each one up on its own schedule, be
explicit about what "consistent" means for coordinated multi-volume workloads, and validate
namespace-level and full-cluster recovery as two separate exercises, since passing one proves
nothing about the other.
Structured elaboration
etcd backup frequency and storage. Gloss: etcd is the distributed key-value store holding all
of the cluster's own state, every deployment, secret, and configuration object, separate from the
actual application data on disk. Losing etcd without a backup means losing the entire cluster's
configuration even if application data on persistent volumes is fully intact. Because etcd
snapshots are typically small and cheap relative to application data, take them frequently, for
example every 30 minutes to a few hours depending on how much configuration change is happening,
plus an explicit snapshot immediately before any risky operation like a cluster upgrade. Store
snapshots off-cluster, in object storage rather than on a volume inside the same cluster, since a
cluster-wide failure takes anything stored inside it along too. Retention for etcd snapshots is
usually short, days to a couple of weeks, since these are operational recovery points rather than a
long-term compliance archive, which is a separate, distinct policy.
Persistent volume (PV) snapshot strategies via the Container Storage Interface (CSI). Use the
CSI snapshot mechanism (VolumeSnapshot and VolumeSnapshotClass objects) so snapshots are native to
the storage backend, typically fast and incremental at the block layer, rather than a slow
file-level copy run from inside a pod. Snapshot frequency should match each workload's recovery
point requirement. By default these snapshots are crash-consistent (equivalent to what you would
get from cutting power), not necessarily application-consistent, unless explicitly coordinated with
the running application.
Backing up and restoring StatefulSets. Back up both the persistent volumes and the
StatefulSet's own object definitions (its spec, the headless Service it depends on, and its PVC
templates), because a restore needs both to succeed. StatefulSet pods have stable, ordinal-based
identities (pod-0, pod-1, and so on), and their persistent volume claims are bound to that
identity; restoring data onto a volume without the matching object definitions can leave data
attached to the wrong pod identity or unattached entirely.
Cluster control plane recovery. For a fully lost control plane, not just lost etcd data,
recovery means restoring the etcd snapshot onto fresh control-plane nodes, bringing the API server
up against that restored store, and then reconciling: whatever was true at snapshot time comes
back, but any change made to the live cluster after that snapshot was taken is gone. That
snapshot's age is the actual recovery point objective for cluster configuration, stated on its own
time basis, separate from whatever recovery point applies to the application data on persistent
volumes.
Validating namespace-level versus full-cluster restore. A namespace-level restore, redeploying
one namespace's workloads and reattaching its persistent volumes and data, validates the common
case: one application broke, get it back. A full-cluster restore, rebuilding etcd, the control
plane, and every namespace, validates the disaster case: the whole cluster or region was lost.
These exercise entirely different failure domains and recovery paths. A passing namespace-level
restore test says nothing about whether a full etcd-and-control-plane rebuild actually works, and
the reverse is equally true, so schedule both on a recurring basis rather than treating one as a
stand-in for the other.
Consistency guarantees. Distinguish crash-consistent (each volume individually reflects an
internally valid filesystem state at snapshot time, but with no coordination across multiple
related volumes or with in-memory application state) from application-consistent (the backup
coordinates with the running application to flush buffers or reach a known clean state first). For
a StatefulSet spanning several persistent volumes, for example a sharded database with one volume
per shard, snapshotting all of them at the same wall-clock moment does not automatically mean they
represent the same logical instant unless the storage backend or backup tool explicitly supports a
coordinated, multi-volume snapshot group. Treating several independently timed snapshots as one
consistent restore point is a common and genuinely dangerous mistake.
Multi-region operator responsibilities. For a plan spanning multiple clusters or regions,
someone has to explicitly own: keeping the disaster-recovery cluster's Kubernetes version and
installed custom resource definitions (CRDs) and operators in sync with the primary, since
restoring a backup into a cluster on a different Kubernetes or CRD version than the one that
created it can fail or behave unpredictably; pre-provisioning enough real capacity in the recovery
region to actually run the workload at failover time rather than discovering a capacity shortfall
mid-incident; and owning the runbook step that redirects traffic after a restore completes. This is
explicitly a shared responsibility between the team operating the clusters and the backup tooling
itself, not something the tooling handles unattended.
Trade-offs and pitfalls
The most common failure mode is treating "the PV snapshots succeeded" as sufficient without also
confirming etcd was captured close enough in time, or the reverse, an up-to-date etcd snapshot
paired with stale application data. State each restore point's age on its own basis, cluster
configuration and application data are not the same clock, and never assume one covers the other.
After detecting a ransomware outbreak that encrypted production VMs and some backups, describe a prioritized restore plan for an enterprise with 2,000 VMs. Include immediate containment, prioritization criteria (e.g., AD, DNS), recovery steps, validation, and stakeholder communication.
Sample Answer
Direct answer
At 2,000 VMs, sequential restore is not a plan, it is a multi-week outage, so the answer has to be a tiering scheme executed in parallel within each tier, gated by containment and by trust in the backup itself (the scenario states some backups were also encrypted, which means the backup infrastructure was reachable by the attacker and every "clean" backup must be verified before it is trusted, not assumed clean because it predates the encryption event).
Immediate containment
- Isolate affected network segments to stop lateral spread: disable inter-host SMB/RDP where feasible, segment VLANs, and pull the affected segment's route to the rest of the network rather than shutting everything down blindly.
- Rotate all privileged credentials immediately, especially anything with domain admin or backup-admin rights, since ransomware operators that reach 2,000 VMs typically did so via a compromised privileged account, not purely via a worm.
- Power off (do not destroy) actively encrypting hosts to stop further damage while preserving forensic evidence on disk; a live host still encrypting is actively destroying data every additional minute it stays up.
- Because "some backups" were encrypted, immediately isolate and lock down the backup infrastructure itself (separate credentials, separate network path) and treat every backup repository as suspect until integrity-checked, not just the ones known to be hit.
- Preserve evidence: snapshot volatile state and logs from a representative sample of affected hosts before any restore activity overwrites it, since the same incident will need a root-cause and likely a breach investigation.
Prioritization criteria (why AD and DNS come first)
Everything else depends on identity and name resolution, so restoring an application server before its supporting Active Directory (AD) domain controllers and DNS are trustworthy just means restoring a system that cannot authenticate or be found. Tiering:
- Tier 0, trust root: AD domain controllers, DNS, DHCP, time sync (NTP), and the backup, EDR (endpoint detection and response, the agent that watches hosts for malicious behavior), and SIEM (security information and event management, the centralized log and alert aggregator) infrastructure itself. These are restored from a verified-clean backup taken before the earliest known indicator of compromise, not simply "yesterday's" backup, because ransomware frequently dwells silently for days to weeks before triggering encryption, and restoring from a backup taken during that dwell time reintroduces the same backdoor.
- Tier 1, core infrastructure: hypervisor management plane, network devices/firewalls, security tooling.
- Tier 2, business-critical applications: ranked by a pre-existing business impact analysis (revenue-generating systems, safety-critical systems, systems under regulatory SLA), not restored ad hoc by whoever asks loudest.
- Tier 3, everything else: restored by department priority and dependency order once the tiers above are stable.
Recovery steps, per VM
For each VM: identify a backup generation confirmed to predate the earliest compromise indicator; restore it into an isolated recovery network with no route to production; run anti-malware/EDR scanning and file-integrity checks against it; identify and close the specific vulnerability believed to have allowed the initial compromise (unpatched service, exposed credential, phishing-delivered payload) before reconnecting; rotate any credentials that lived on that VM; only then move it onto the production network.
Validation
Before declaring a restored VM production-ready: automated boot and health check; malware/EDR scan clean; checksum or hash comparison of critical files against known-good; application-level smoke tests for anything customer-facing; and an observation window (hours, not minutes) watching for re-encryption or beaconing behavior before the VM is trusted unattended, since a restored-but-still-backdoored host will often stay quiet until it reconnects to its command-and-control infrastructure.
Stakeholder communication
A single incident commander owns messaging so technical recovery and business communication do not conflict. A pre-agreed cadence (for example every 30-60 minutes during the active phase) goes to executives, legal, and PR. Because most modern ransomware is double-extortion (data exfiltrated, not only encrypted), legal must assess breach-notification obligations early rather than waiting for full recovery, and customer-facing status updates should be honest about scope without disclosing details that would help the attacker or violate the ongoing investigation. Recovery progress should be reported by tier ("Tier 0 identity restored and verified, Tier 1 in progress") since that is a metric stakeholders can track and it maps to what is actually unblocking further recovery.
Unlock Full Question Bank
Get access to all Backup and Disaster Recovery interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.