Disaster recovery strategies (backup, pilot light, warm standby) in AWS - Time & Space Complexity
When planning disaster recovery in the cloud, it's important to know how the time to recover grows as your data or resources increase.
We want to understand how the recovery steps scale with the size of your infrastructure.
Analyze the time complexity of these disaster recovery strategies.
// Backup: Periodic snapshots of data
// Pilot Light: Minimal core system running
// Warm Standby: Scaled-down duplicate environment
// Recovery involves restoring data and starting services
This sequence shows the main steps in each strategy to recover after a failure.
Look at what actions happen repeatedly during recovery.
- Primary operation: Restoring data from backups or snapshots.
- How many times: Depends on the amount of data and number of services to restart.
As your data size and number of services grow, the recovery time grows roughly in proportion.
| Input Size (n) | Approx. Recovery Steps |
|---|---|
| 10 GB data, 2 services | Few restore and start operations |
| 100 GB data, 10 services | Many restore and start operations |
| 1 TB data, 50 services | Much more restore and start operations |
Pattern observation: Recovery time grows roughly linearly with data size and number of services.
Time Complexity: O(n)
This means recovery time grows in a straight line as your data and services increase.
[X] Wrong: "Recovery time stays the same no matter how much data or how many services I have."
[OK] Correct: More data and services mean more to restore and start, so recovery takes longer.
Understanding how recovery time grows helps you design better disaster plans and explain your choices clearly.
"What if we used a full warm standby environment instead of pilot light? How would the recovery time complexity change?"
Practice
Solution
Step 1: Understand pilot light strategy
Pilot light keeps a minimal core of your environment running, like a small copy of critical systems.Step 2: Compare with other strategies
Backup stores data but requires full rebuild; warm standby runs a scaled-down version ready to take over; cold standby is offline.Final Answer:
Pilot light -> Option AQuick Check:
Minimal running core = Pilot light [OK]
- Confusing warm standby with pilot light
- Thinking backup keeps systems running
- Assuming cold standby is always active
Solution
Step 1: Identify backup storage service
Amazon S3 is designed for durable, scalable storage, ideal for backups.Step 2: Exclude other services
EC2 is compute, Lambda is serverless code, VPC is networking, none are primarily for backups.Final Answer:
Amazon S3 -> Option AQuick Check:
Backup storage = Amazon S3 [OK]
- Choosing EC2 as backup storage
- Confusing Lambda with storage
- Selecting VPC for backups
Solution
Step 1: Understand warm standby state
Warm standby runs a scaled-down but fully functional environment ready to take over quickly.Step 2: Compare with other options
Fully scaled parallel is active-active, minimal core is pilot light, no environment is backup only.Final Answer:
Scaled-down but fully functional environment running -> Option DQuick Check:
Warm standby = scaled-down functional environment [OK]
- Confusing warm standby with full production
- Mixing pilot light with warm standby
- Thinking backup means no running environment
Solution
Step 1: Analyze pilot light recovery process
Pilot light requires scaling up minimal systems to full production, so incomplete setup delays recovery.Step 2: Exclude unrelated options
Backups in S3 are normal; warm standby running full is unrelated; primary active is normal operation.Final Answer:
The pilot light environment is not fully configured and requires manual scaling -> Option BQuick Check:
Pilot light slow recovery = incomplete setup [OK]
- Blaming backups for slow recovery
- Confusing warm standby with pilot light
- Assuming primary environment affects recovery time
Solution
Step 1: Understand company needs
They want a running system at reduced capacity that can scale quickly, balancing cost and speed.Step 2: Match needs to strategies
Backup only is slow recovery; pilot light is minimal core only; cold standby is offline; warm standby runs scaled-down environment ready to scale.Final Answer:
Warm standby -> Option CQuick Check:
Running reduced capacity system = Warm standby [OK]
- Choosing pilot light for running full system
- Confusing backup with standby strategies
- Selecting cold standby for fast recovery
Ready to prove it?
Pass the test and this pattern moves unknown
