Q&A-1Explain the difference between high availability and disaster recovery.
Answer
What a strong candidate says first (60–120s). These are two different objectives, and the interview answer names the objective before the technology. High availability keeps a service serving through the failures you designed for (a host, an instance, an AZ, a bad deploy) by running redundant capacity and moving traffic to it automatically. Its budget is seconds to a couple of minutes, and its RPO is usually zero because the standby is synchronous. Disaster recovery restores service and data after an event that exceeds that design: a region, a control plane, or the data itself. Its budget is RTO and RPO, and it is a capability you rehearse, not a property of the running system. I'd pin the numbers first: what RPO and RTO does the business actually need, and which failure classes are in scope.
Mechanism: how each one actually works.
HA failover is a detection-and-routing loop. A health check samples the target; after N consecutive failures the load balancer stops sending traffic; a standby takes over. Every stage costs time, and the defaults are the budget:
- ALB target group defaults: 30s interval, unhealthy threshold 2 → 60s to mark a target unhealthy.
- A Route 53 failover record with a 60s TTL → clients re-resolve within about a minute.
- Total: roughly 120s of errors before traffic lands on healthy capacity.
RDS Multi-AZ is the data-side version: synchronous replication to a standby in another AZ, so RPO is 0 for an AZ failure, and AWS documents failover as typically 60–120s.
DR is a replication-mode decision, and the mode sets the RPO. Synchronous replication gives RPO 0 but adds a round trip to every write. Asynchronous replication gives a small RPO and no write penalty. Aurora Global Database documents RPO around 1 second and RTO typically under a minute; S3 Cross-Region Replication with Replication Time Control replicates 99.99% of objects within 15 minutes. The RTO side is the restore or promote path, and that is the part people forget to measure.
Capacity arithmetic for HA. Three AZs each sized at 50% of peak means you run 150% of minimum; losing one AZ leaves 100% and the service holds. Size each AZ at 33% and losing one leaves 66%: the service degrades. That headroom is the HA bill.
Trade-offs and deciding criteria.
| HA | DR | |
|---|---|---|
| Failure scope | host, AZ, deploy | region, control plane, data corruption |
| Budget | seconds–minutes | RTO/RPO in the contract |
| Replication | usually synchronous | sync or async, chosen by RPO |
| Cost | extra AZ headroom (1.5× minimum above) | pilot light ~10–20% of prod; backup/restore near storage cost |
| Verified by | failover drills | restore game days |
The deciding criterion is RPO. If the business cannot lose a committed write, you pay for synchronous replication and accept the latency. If it can lose a minute, async is cheaper and simpler. If RTO is hours, backup-and-restore is a legitimate posture: a DR-only design is fine for internal tooling, batch jobs, and anything where a day of downtime costs less than a second region.
Failure modes.
- Split brain: two nodes both believe they are primary and accept writes. Detect with a quorum/witness node; fence the loser (STONITH) rather than trusting the network.
- Failover to a stale replica: async lag means promotion loses the last N seconds. Watch replication lag as a first-class metric and alert before it crosses your RPO.
- HA that replicates corruption: a synchronous standby faithfully copies a bad
DELETE. HA cannot help; point-in-time recovery can. This is the case that proves the two are not substitutes. - Untested DR: the plan restores in 6 hours because nobody measured, and the RTO was 1 hour. Run a restore game day quarterly and record the actual time.
- Backup that exists but does not restore: missing KMS key, wrong region, or an IAM role that no longer exists. Restore into a scratch account to prove the path.
The one-line close. HA is about not going down; DR is about coming back, and the numbers, not the architecture diagram, tell you which one you bought.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.