Backups, Replication and Disaster Recovery Interview Questions
261 multiple-choice tech interview questions on Backups, Replication and Disaster Recovery: RPO and RTO, full, differential and incremental backups, point-in-time restore, replication, failover, DR strategies. Written for technical phone screens and interview prep, organized by subtopic, with a short explanation for every answer. Learn the 172 key terms with the flashcards first, then test yourself.
Take the practice test · Flashcards · All study tools
What it covers
- 11.1 Recovery objectives and backup strategy
- 11.2 Backup types and consistency
- 11.3 Database backups and point-in-time recovery
- 11.4 Restore testing and verification
- 11.5 Backup security and ransomware resilience
- 11.6 Replication fundamentals
- 11.7 Failover and high-availability clusters
- 11.8 Disaster recovery strategies and planning
- 11.9 Cloud backup and DR services
Key terms
11.1 Recovery objectives and backup strategy
- RPO
- Recovery point objective: maximum acceptable data loss, measured in time
- RTO
- Recovery time objective: maximum acceptable time to restore service
- 3-2-1 rule
- Three copies, two kinds of storage, one off-site
- Point-in-time restore
- Restoring a database to a chosen moment by replaying log backups
- Immutable backup
- A backup that cannot be changed or deleted during its retention period
- MTD
- Maximum tolerable downtime
- GFS rotation
- Daily, weekly, monthly backups
- 3-2-1-1-0
- Adds immutable copy and verified restores
- Backup window
- Time when backups can run
- SaaS backup
- Protecting data in hosted apps
- Backup tiering
- Protection by importance
- Backup vs archive
- Recovery copy vs long-term store
- Cross-system consistency
- Matching restore points
- Backup catalog
- Index of backups
- Backup monitoring
- Alert on failed or missing runs
- Legal hold
- Suspends deletion
- Deduplication
- Store repeated data once
- Change rate
- Drives incremental size
- Sync vs backup
- Sync spreads deletions
11.2 Backup types and consistency
- Synthetic full
- Full built from existing backups
- Incremental forever
- One full, then merged incrementals
- Backup chain
- Full plus dependent increments
- Logical backup
- Rows and schema export
- Physical backup
- Data file copy
- Application-consistent
- App quiesced first
- fsfreeze
- Pause writes for a snapshot
- Consistency group
- Multi-volume snapshot at one instant
- Changed block tracking
- Read only changed blocks
- Image-level backup
- Whole disk or VM
- rsync --link-dest
- Hard-link snapshots
- restic / Borg
- Deduplicated encrypted repos
- Prune
- Remove unreferenced chunks
- Hot backup
- Taken while running
- Reverse incremental
- Newest point is full
- CDP
- Continuous data protection
- LTO tape
- Cheap offline storage
- RAID is not backup
- Copies corruption instantly
11.3 Database backups and point-in-time recovery
- Continuous archiving
- Base backup plus WAL
- pg_basebackup
- Physical cluster copy
- pgBackRest
- PostgreSQL backup manager
- recovery.signal
- Starts targeted recovery
- pg_combinebackup
- Builds a full from incrementals
- pg_restore -j
- Parallel restore
- pg_dumpall --globals-only
- Roles and tablespaces
- mysqlbinlog
- Replays binary logs
- XtraBackup
- Hot physical InnoDB backup
- util.dumpInstance
- Parallel logical dump
- Recovery model
- SIMPLE, FULL, BULK_LOGGED
- Tail-log backup
- Captures last log records
- COPY_ONLY
- Ad-hoc backup outside the chain
- NORECOVERY
- Keep restoring
- STOPAT
- Restore to a time
- RMAN
- Oracle Recovery Manager
- mongodump --oplog
- Consistent replica set dump
- pg_stat_archiver
- Archiving status
- Timeline
- Post-recovery history branch
- Restore point
- Named recovery target
11.4 Restore testing and verification
- Automated restore test
- Scheduled real restore and checks
- RESTORE VERIFYONLY
- Backup set readable
- DBCC CHECKDB
- Database consistency check
- BACKUP WITH CHECKSUM
- Verifies pages during backup
- pg_verifybackup
- Checks a backup against its manifest
- pg_amcheck
- Detects table and index corruption
- Isolated restore
- Test without touching production
- Item-level restore
- Single files or tables
- Bit rot
- Silent data decay
- Restore runbook
- Step-by-step recovery guide
- Schrödinger's backup
- Unknown until restored
- GitLab 2017
- Failed backups, lost data
- Restore order
- Dependencies first
- Coverage gap
- Unprotected new systems
- Instant recovery
- Run VM from backup storage
- Size anomaly alert
- Unusual backup size
- Canary record
- Marker row to verify backups
11.5 Backup security and ransomware resilience
- Backup targeting
- Attackers hit backups first
- Separate identity
- Backups outside production AD
- Multi-person approval
- Required for deletion
- Compliance mode
- Unbypassable Object Lock retention
- Logical air gap
- Isolation by access controls
- Key escrow
- Protected copy of encryption keys
- TDE certificate
- Needed to restore encrypted DBs
- Restore access control
- Restores expose data
- Dwell time
- Time attackers go unnoticed
- Clean room recovery
- Isolated trusted rebuild
- Entropy spike
- Sign of mass encryption
- Crypto-shredding
- Destroy key to erase data
- Media sanitization
- Wipe or destroy old media
- Double extortion
- Encrypt and leak
- Forest recovery
- Rebuilding Active Directory
- Chain of custody
- Who handled media
- Append-only credentials
- Can't delete old backups
11.6 Replication fundamentals
- Synchronous replication
- Writes commit only after the replica confirms, avoiding data loss on failover
- Asynchronous replication
- Writes commit before replicas apply them, allowing lag and possible data loss
- Split brain
- Two nodes both acting as primary after a partition
- Physical replication
- Ships the storage log
- Logical replication
- Ships row changes
- Semi-synchronous
- Waits for receipt by one replica
- remote_apply
- Wait until standby applies
- Quorum sync replication
- ANY n of standbys
- Parallel apply
- Multi-threaded replica
- Seconds_Behind_Source
- MySQL lag metric
- Heartbeat table
- Measured replication lag
- GTID
- Global transaction ID
- Row-based logging
- Replicates row changes
- Cascading replication
- Replica feeds replicas
- Read-after-write wait
- Wait for a log position
- Storage replication
- Block-level copies
- Clone plugin
- Seeds replicas
- super_read_only
- Blocks all writes on replicas
- Oplog window
- How far behind a secondary can fall
- Home region
- One region owns each record's writes
- Relay log
- Received events on a replica
11.7 Failover and high-availability clusters
- Patroni
- PostgreSQL HA manager
- Leader lock
- Proves the right to be primary
- AG listener
- Stable name for the primary
- Synchronous-commit mode
- Needed for automatic AG failover
- Read-only routing
- Sends read intent to secondaries
- FCI
- Shared-storage cluster instance
- Group Replication
- Consensus-based MySQL cluster
- STONITH
- Power off the suspect node
- Failover flapping
- Repeated false failovers
- target_session_attrs
- Find a writable host
- Switchover
- Planned, lossless role change
- pg_rewind
- Resync a former primary
- maximum_lag_on_failover
- Limit promotion candidates
- Virtual IP
- Address that moves on failover
- w: majority
- Write concern surviving failover
- CloudNativePG
- PostgreSQL operator
- Hidden member
- Non-electable data copy
- Arbiter
- Voting member without data
11.8 Disaster recovery strategies and planning
- Pilot light
- DR strategy keeping core data replicated and minimal infrastructure ready to scale
- Warm standby
- DR strategy running a scaled-down, fully working copy in the recovery region
- DR plan
- Roles, decisions, contacts, steps
- Disaster declaration
- Who decides to fail over
- Communication plan
- Who tells whom, and how
- Capacity reservation
- Guaranteed DR capacity
- Regional service gaps
- Services missing in a region
- Static stability
- No dependency on the failed region
- Recovery artifacts
- Images, state, secrets replicated
- BCP
- Business continuity plan
- ISO 22301
- Business continuity standard
- Hot, warm, cold site
- Readiness levels
- Parallel test
- DR systems up alongside production
- Reconciliation
- Fixing lost or duplicated work
- Gray failure
- Partial, unclear outage
- Multi-cloud DR
- Recovery in another provider
- Out-of-band communication
- Separate channel in a crisis
- Digital Operational Resilience Act
- EU financial ICT resilience
- Geographic separation
- Distance between sites
- Degraded mode
- Partial service during recovery
11.9 Cloud backup and DR services
- AWS Backup
- Central backup policies
- Vault Lock
- Undeletable recovery points
- Cross-account copy
- Backups out of attackers' reach
- RDS automated backups
- PITR up to 35 days
- Aurora Backtrack
- In-place rewind
- Aurora Global Database
- Cross-region storage replication
- Aurora storage
- Six copies across three AZs
- Customer-managed key
- Needed to share encrypted snapshots
- EBS snapshot
- Incremental block copies
- Fast Snapshot Restore
- No first-read penalty
- DynamoDB PITR
- 35-day restore window
- Azure Backup soft delete
- 14-day recovery of deleted backups
- Azure SQL PITR
- 7 days by default, up to 35
- Long-term retention
- Backups for up to 10 years
- Geo-restore
- Restore from geo-replicated backups
- Paired regions
- Staggered updates, recovery priority
- Elastic Disaster Recovery
- Block-level server replication
- Recovery plan
- Ordered failover group
- Test failover
- Isolated DR drill
- Resilience Hub
- Resilience assessments
- Application Recovery Controller
- Routing controls for failover
- Cloud SQL HA
- Zonal standby
Sample practice questions
What does recovery point objective (RPO) measure?
- The longest you can accept for restoring service
- The most data loss you can accept, measured in time
- The number of backup copies that must be kept
- The percentage of uptime promised to customers
Answer: B. The most data loss you can accept, measured in time An RPO of 15 minutes means you may lose at most the last 15 minutes of data.
How does an incremental backup differ from a differential backup?
- Differential: changes since the last incremental; incremental: since the full
- An incremental backup always copies everything, just compressed more
- Incremental: changes since the last backup; differential: since the last full
- They're the same thing, under two vendors' names
Answer: C. Incremental: changes since the last backup; differential: since the last full Incrementals are smaller to take but a restore needs the full backup plus every incremental; a restore from differential needs just the full plus the latest differential.
How does point-in-time restore (PITR) work for a database?
- Every row is restored from its own individual snapshot
- The database can only ever be restored to midnight
- It reverts the schema to that time, but not the data
- A full backup plus log backups replayed up to a chosen moment
Answer: D. A full backup plus log backups replayed up to a chosen moment Azure SQL Database and Amazon RDS offer automated PITR within a retention window.
What is the only way to be confident a backup works?
- Regularly test restores and verify the restored data
- Check that the backup job reports success each night
- Compare the backup files' sizes over time for changes
- Store every backup in at least two separate places
Answer: A. Regularly test restores and verify the restored data Untested backups often fail when needed because of corruption, missing pieces or unknown restore steps.
Why do ransomware groups often go after backup servers before encrypting anything?
- Without working backups, victims are far more likely to pay the ransom
- Backup servers are always the fastest machines on the network
- Backup servers hold the encryption keys that ransomware needs to run
- Encrypting backups first makes the attack harder to detect later
Answer: A. Without working backups, victims are far more likely to pay the ransom Assume backups are a primary target.
What is the main tradeoff of synchronous replication?
- It costs nothing to run, but it loses some data on every failover
- It allows any distance between sites with no added write latency
- It only replicates schema changes, so data must be copied separately
- No committed data lost on failover, but each write waits for the replica
Answer: D. No committed data lost on failover, but each write waits for the replica Synchronous replication is usually limited to nearby zones; long distances use asynchronous replication.
Why do clusters often use an odd number of voting members or a witness?
- An odd number of nodes always replicates data faster than even
- So a majority quorum always exists in a partition, avoiding ties
- Database licenses require clusters to have an odd number of nodes
- Clusters with an even number of nodes can't be backed up at all
Answer: B. So a majority quorum always exists in a partition, avoiding ties Azure SQL failover clusters and etcd both rely on quorum.
Which disaster recovery strategy has the lowest cost but the longest recovery time?
- Pilot light
- Backup and restore
- Warm standby
- Multi-site active-active
Answer: B. Backup and restore AWS describes four DR strategies in order of increasing cost and decreasing RTO: backup and restore, pilot light, warm standby and multi-site active-active.
What does an Azure SQL Database auto-failover group provide?
- Hourly backups of each database written to the same logical server
- Read-only access to the primary database for reporting workloads
- Automatic scaling of compute up and down based on current load
- Geo-replication to another region behind a listener that survives failover
Answer: D. Geo-replication to another region behind a listener that survives failover Applications connect to the failover group's listener, so connection strings do not change on failover.
What does recovery time objective (RTO) measure?
- How much data, in time, you can afford to lose
- How long each backup has to be retained
- The longest acceptable time to restore service
- How often the backup job needs to run
Answer: C. The longest acceptable time to restore service Lower RTO and RPO targets require more expensive architectures.
More Storage and Data
- Relational Database Design and Normalization
- SQL Queries, Joins and Window Functions
- Indexing and Query Optimization
- Transactions, ACID and Isolation Levels
- NoSQL Databases: Document, Key-Value, Wide-Column and Graph
- Caching: Redis, CDNs and Cache Invalidation
- ORMs: Entity Framework Core and Hibernate
- Data Warehousing and ETL
- Message Queues and Event Streaming: Kafka, RabbitMQ and Service Bus
- Blob and Object Storage