Cloud Infrastructure and Deployment Strategies

Chapter 11
Resilience, Backup, and Disaster Recovery

Diploma in Cloud Computing
Cloud Infrastructure and Deployment Strategies   •   Diploma

Resilience, Backup, and Disaster Recovery

Introduction

Cloud infrastructure is valuable only when it remains available, recoverable, and trustworthy during failure. Hardware faults, software defects, cyberattacks, human error, provider outages, regional disasters, and supply-chain incidents can interrupt services or corrupt data. Resilience is therefore not a single product or configuration. It is a set of architectural, operational, governance, and business practices that reduce the probability and impact of disruption.

This chapter develops a practical framework for analysing risks and dependencies, defining recovery objectives, selecting backup and replication methods, designing failover across zones and regions, and validating business continuity through testing. The central principle is that recovery requirements should be derived from business consequences rather than from technology preferences.

Learning Objectives

By the end of this chapter, you should be able to:

  • identify service risks, dependencies, and single points of failure;
  • distinguish resilience, backup, replication, high availability, and disaster recovery;
  • define and calculate Recovery Time Objective (RTO), Recovery Point Objective (RPO), and related measures;
  • select suitable backup, replication, multi-zone, and multi-region arrangements;
  • design failover, restoration, and business-continuity procedures;
  • develop a test programme and interpret its results;
  • evaluate security, governance, cost, and ethical issues in recovery design.

1. Foundations of Resilient Cloud Systems

Resilience is the ability of a system or organisation to continue delivering an acceptable service during adverse conditions and to recover effectively afterward. It includes prevention, absorption, adaptation, recovery, and learning.

High availability (HA) focuses on reducing service interruption during component failure. For example, multiple application instances behind a load balancer can continue serving requests when one instance fails. HA usually addresses frequent, localised faults.

Backup is a separate, recoverable copy of data or configuration. A backup is normally created at a point in time and retained according to policy. It is particularly important for accidental deletion, corruption, ransomware, and legal retention.

Replication maintains one or more copies of data or services, often with a short delay. Synchronous replication attempts to commit changes to multiple locations before acknowledging a write; asynchronous replication acknowledges the write before the secondary copy is guaranteed current.

Disaster recovery (DR) is the coordinated process of restoring technology services after a disruptive event. It includes people, procedures, infrastructure, data, communications, and decision authority.

Business continuity (BC) is broader than DR. It covers how critical business activities continue, possibly through manual work, alternate facilities, substitute suppliers, or reduced service while technology is unavailable.

A resilient design recognises that availability and recoverability are different. Replication can rapidly provide current data but may also replicate corruption. Backups may preserve historical states but require more time to restore. Effective systems commonly use both.

2. Risk and Dependency Analysis

2.1 Risk identification

Risk analysis begins by asking what can fail, how it can fail, and what the consequences would be. Typical cloud risks include:

  • loss of a virtual machine, host, storage device, availability zone, or region;
  • network or identity-service failure;
  • misconfiguration or failed deployment;
  • data corruption, accidental deletion, or ransomware;
  • expired certificates, quotas, or credentials;
  • provider, telecommunications, or software-supply-chain failure;
  • inadequate staff availability or undocumented operational knowledge.

A useful risk statement has the form: cause → event → effect. For example, “a faulty deployment removes an access-control rule, causing unauthorised data exposure and service suspension.” This form helps distinguish the initiating cause from the business impact.

A qualitative risk register may classify likelihood and impact as low, medium, or high. A quantitative approach can use expected annual loss:

EAL = ALE = P(A) × I(A)

Here, P(A) is the estimated annual probability of event A, and I(A) is the monetary impact if it occurs. The result is expressed in currency per year. This model assumes that probability and impact estimates are meaningful and that the event can be reasonably represented as a discrete scenario. It should not be treated as a precise prediction when data is limited.

2.2 Dependency analysis

A service map should identify both technical and organisational dependencies. A customer-facing application may depend on DNS, identity and access management, networking, compute, databases, object storage, queues, monitoring, payment services, secrets, certificates, staff, and external suppliers.

Dependencies should be classified as:

  • hard dependencies: the service cannot operate without them;
  • soft dependencies: the service can operate temporarily with reduced capability;
  • shared dependencies: several services rely on the same component;
  • external dependencies: controlled by another team, provider, or organisation;
  • data dependencies: required datasets, schemas, keys, or metadata.

Dependency mapping should include failure domains. Two servers in different racks may still share a zone-level network or power dependency. Two zones may still depend on the same regional control plane. A multi-region design may still share identity, DNS, code repositories, or human approval processes.

A practical technique is a business impact analysis (BIA). For each business process, record its owner, customers, data, peak operating periods, legal obligations, minimum acceptable service, and consequences of downtime or data loss. The BIA then supplies the evidence for recovery objectives.

3. Recovery Objectives and Measurements

3.1 RTO and RPO

Recovery Time Objective (RTO) is the maximum acceptable elapsed time between service disruption and restoration of an agreed service level. Recovery Point Objective (RPO) is the maximum acceptable amount of data loss measured in time. An RPO of 15 minutes means that, after recovery, the organisation may accept losing up to approximately the most recent 15 minutes of committed data.

RTO and RPO are business requirements, not guarantees created automatically by a cloud platform. They must be feasible under realistic failure, detection, decision, restoration, validation, and communication conditions.

A useful decomposition is:

RTO = Tdetect + Tdecide + Trecover + Tvalidate

The terms represent detection, decision and authorisation, technical recovery, and service validation. The equation assumes the activities are sequential. If some activities occur in parallel, the total is instead governed by the critical path, not necessarily their simple sum.

For a recovery process, the achieved recovery point can be expressed as:

Achieved data loss = Tevent − Tlast usable copy

Both terms are points in time, so the result is a duration. The “last usable copy” must be usable and accessible; a completed but corrupted backup does not satisfy the objective.

3.2 Availability and downtime

Availability is commonly estimated as:

Availability = Uptime ÷ (Uptime + Downtime)

Both quantities must use the same time unit and measurement period. For example, 99.9% availability over a 30-day month permits approximately:

30 × 24 × 60 × (1 − 0.999) = 43.2 minutes

This is an approximation because calendar months differ and service-level definitions may exclude maintenance or force majeure events. Availability targets do not define RTO or RPO: a service may be highly available during normal operation but poorly recoverable after a major disaster.

3.3 Recovery tiers

Not every workload deserves the same investment. A tiering model might classify systems as follows:

TierBusiness requirementTypical arrangement
0Near-continuous operationactive-active, automated regional failover
1Very rapid recovery and minimal data losshot standby or synchronous replication
2Recovery within hourswarm standby, frequent backups
3Recovery within dayscold infrastructure, periodic backups

The labels are illustrative. Each organisation must define measurable criteria and approve them through governance.

4. Backup Design

4.1 Backup types

A full backup copies the selected dataset. An incremental backup copies changes since the previous backup of any type. A differential backup copies changes since the last full backup. Incrementals usually reduce backup time and storage, whereas differentials can simplify restoration because only the last full and latest differential are required.

Other important distinctions include:

  • snapshot: a point-in-time representation, often storage-system dependent;
  • logical backup: an export of records or objects in a portable format;
  • physical backup: copies underlying database or storage files;
  • application-consistent backup: coordinates with the application so transactions and dependent data are coherent;
  • crash-consistent backup: reflects storage state at a point in time but may require application recovery on restart.

A snapshot is not automatically a backup. If it resides in the same account, region, or administrative domain as production, a single incident may destroy both copies.

4.2 The 3-2-1 principle and immutability

A robust baseline is the 3-2-1 principle: maintain at least three copies, on at least two media or storage systems, with at least one copy geographically separate. Modern designs often extend this to 3-2-1-1-0: one offline or logically isolated copy and zero unverified backup errors.

Important controls include encryption in transit and at rest, separate backup credentials, multi-factor authentication, retention locks, write-once-read-many (WORM) storage, versioning, and deletion protection. Encryption keys require particular care: if the backup and its decryption key depend on the same failed account, the backup may be unusable.

Retention should reflect operational, legal, and privacy requirements. Keeping every backup forever increases cost and may conflict with data-minimisation obligations. Deletion schedules should be documented, approved, and tested.

4.3 Backup frequency and capacity

If a workload changes at an average rate of r gigabytes per day and incremental backups are retained for d days, a simple estimate of incremental storage is:

Sincremental ≈ r × d

This assumes the change rate and compression ratio are stable and excludes metadata, full backups, indexes, replication overhead, and deduplication effects. For example, at 40 GB/day retained for 14 days, the uncompressed incremental estimate is 560 GB. Actual consumption must be measured.

Backups should be monitored for completion, duration, size anomalies, encryption, policy compliance, and restorability. “Job succeeded” is insufficient evidence that data can be recovered.

5. Replication, Failover, and Failure Domains

5.1 Synchronous and asynchronous replication

Synchronous replication aims for near-zero data loss, but write latency and the distance between replicas limit feasibility. It also risks propagating accidental changes. Asynchronous replication supports greater geographic distance and lower write latency but introduces a replication lag and therefore a non-zero potential RPO.

Replication modes should be selected per data class. A payment ledger may require strong consistency and carefully controlled failover, while logs or cached content may tolerate delayed or regenerated copies.

5.2 Multi-zone architecture

A zone-resilient application distributes stateless compute across at least two independent availability zones, uses health-aware load balancing, stores durable data in zone-resilient services, and avoids hard-coded dependence on one zone. Databases require explicit consideration of quorum, leader election, split-brain prevention, and write consistency.

Zones reduce the impact of local faults but do not protect against regional events, provider-wide control-plane failures, or common credentials and configuration. Monitoring and deployment pipelines must also be resilient.

5.3 Multi-region architecture

Multi-region arrangements may be:

  • pilot light: only essential data and minimal infrastructure are continuously maintained;
  • warm standby: a scaled-down but operational secondary environment exists;
  • active-passive: one region serves traffic while another is ready to assume it;
  • active-active: multiple regions serve traffic concurrently.

Active-active can reduce recovery time but introduces conflict resolution, global routing, data consistency, deployment coordination, and operational complexity. It is not automatically superior. A well-tested warm standby may provide better overall reliability for a small organisation.

Failover must define who declares a disaster, which signals are sufficient, how traffic is redirected, how writes are prevented in the failed region, and how failback is performed. DNS-based failover may be affected by caching and time-to-live behaviour; application-level routing or global load balancing may provide different trade-offs.

6. Disaster-Recovery Runbooks and Testing

A runbook converts architecture into action. It should include prerequisites, contacts, authority to declare an incident, dependency order, commands or console steps, security checks, validation tests, communications templates, rollback criteria, and evidence to record. Procedures should be executable by more than one person and should not depend on undocumented personal knowledge.

A typical recovery sequence is:

  1. detect and classify the incident;
  2. protect people, evidence, credentials, and remaining data;
  3. declare disaster status if thresholds are met;
  4. freeze unsafe changes and establish incident command;
  5. recover identity, networking, secrets, and core data dependencies;
  6. restore or promote application services;
  7. validate data integrity, security, performance, and transactions;
  8. redirect users gradually and monitor;
  9. communicate status and limitations;
  10. reconcile data and execute controlled failback when appropriate.

Testing should progress from low-risk tabletop exercises to technical restoration, isolated recovery, partial failover, and full-scale simulations. Tests should measure achieved RTO, achieved RPO, restoration success, data integrity, staff response, monitoring, and communication quality.

A failed test is valuable evidence, not merely an operational embarrassment. Findings should have owners, deadlines, severity, and retest requirements. Recovery tests must also avoid contaminating production or sending duplicate customer transactions.

7. Governance, Security, and Professional Responsibility

Recovery systems are high-value targets. Backup administrators often possess privileges that can erase or decrypt large datasets. Least privilege, separation of duties, privileged-access management, strong authentication, immutable copies, and audit logging are therefore essential.

Organisations must consider privacy and regulatory obligations, including lawful retention, cross-border transfer, breach notification, access requests, and secure destruction. A secondary region may place personal data under different legal conditions. Contracts should specify provider responsibilities, notification timeframes, portability, audit evidence, service credits, and termination assistance.

Recovery decisions also have ethical dimensions. Prioritising one service may delay another group’s access to essential resources. Critical services should be ranked transparently, with attention to safety, accessibility, vulnerable users, and non-discrimination. AI-assisted anomaly detection can improve detection, but automated failover or deletion decisions require safeguards against false positives, biased alerts, and opaque accountability.

8. Illustrative Case: Regional Failure of an Online College

Background

An illustrative online college operates a learning platform with an application tier, relational database, object storage for coursework, identity services, and a payment gateway. Its agreed requirements are an RTO of four hours and an RPO of 30 minutes for course records. Payment processing must not create duplicate charges.

Problem and analysis

The original design used three application servers in one availability zone. Database snapshots were taken daily into the same cloud account. A regional outage would therefore remove the application, database access, and the normal backup-management path. The dependency analysis also found that administrators relied on a single identity tenant and that DNS changes were performed manually by one engineer.

Approach

The college introduced multi-zone application instances, a managed database with a cross-region read replica, transaction logs copied every five minutes, and encrypted immutable backups in a separate account and region. Coursework objects were versioned and replicated. A warm standby environment contained infrastructure definitions, networking, secrets-recovery procedures, and scaled application capacity.

The runbook required the incident commander to stop writes in the primary region, verify the latest replica position, promote the secondary database, update routing, and run synthetic login, enrolment, coursework, and read-only payment tests. Payment requests included idempotency identifiers so that retrying a request would not create a second charge.

Outcome

In a controlled exercise, the team restored core service in 2 hours 35 minutes and recovered data to within 12 minutes of the simulated event. The exercise also revealed that one certificate was not included in the standby process and that a reporting job placed excessive load on the promoted database. Both findings were assigned corrective actions.

Learning points

The case demonstrates that resilience depends on dependencies, not only server count. It also shows why replication and immutable backups are complementary, why business transactions require application-level controls, and why recovery claims must be demonstrated through tests.

9. Challenges and Design Trade-offs

Resilience has costs. Extra regions, replicas, storage, testing, and specialist staff increase expenditure. Strong consistency may increase latency; asynchronous replication may reduce performance impact but increase possible data loss. Automation reduces human delay but can amplify an incorrect decision. Provider-native services simplify operations but may increase lock-in and complicate portability.

No design eliminates all risk. Instead, architects should document assumptions, failure domains, residual risks, and compensating controls. Cost optimisation must not silently weaken approved RTO or RPO. Recovery objectives should be reviewed after major application, regulatory, supplier, or business changes.

Chapter Summary

Resilience is an end-to-end property combining architecture, data protection, people, procedures, governance, and testing. Risk and dependency analysis identifies failure modes and shared dependencies. RTO expresses acceptable recovery time, while RPO expresses acceptable data loss; both must be derived from business impact.

Backups provide historical recovery points, whereas replication provides additional current copies and may support rapid failover. Multi-zone designs address localised failures; multi-region designs address broader events but introduce cost and consistency challenges. Immutable, isolated, encrypted backups protect against corruption and ransomware. Runbooks, clear authority, staged testing, monitoring, and post-test improvement turn theoretical recovery capability into dependable practice.

Key Terms

Resilience: Ability to continue or recover acceptable service during disruption.

High availability: Design approach that reduces service interruption during component failure.

Backup: A separate recoverable copy of data or configuration.

Replication: Maintenance of one or more copies of data or services.

Disaster recovery: Restoration of technology services after disruption.

Business continuity: Continuation of critical business activities during disruption.

RTO: Maximum acceptable time to restore an agreed service level.

RPO: Maximum acceptable period of data loss measured in time.

BIA: Business impact analysis used to identify process criticality and consequences.

Failure domain: A set of components exposed to a common failure.

Synchronous replication: Replication requiring coordinated confirmation before completion.

Asynchronous replication: Replication that may lag behind the primary copy.

Immutable backup: Backup protected from alteration or deletion during its retention period.

Warm standby: A partially operational recovery environment ready for expansion.

Active-active: Multiple environments serving traffic concurrently.

Failover: Transfer of service operation to an alternate environment.

Failback: Controlled return of service to the original or preferred environment.

Runbook: Documented operational procedure for a defined task or incident.

Application-consistent backup: Backup coordinated with application state and transactions.

Split brain: Condition in which independent nodes incorrectly act as authoritative leaders.

Review Questions

Short Answer Questions

  1. Distinguish backup from replication.
  2. What do RTO and RPO measure?
  3. Why is a same-account snapshot not always a sufficient backup?
  4. Name two dependencies that should appear in a cloud service map.
  5. What is the purpose of a recovery runbook?

Long Answer Questions

  1. Explain how a BIA informs recovery-tier selection and investment.
  2. Compare synchronous and asynchronous replication, including their operational trade-offs.
  3. Describe a multi-zone architecture for a stateless web application and its database.
  4. Explain how immutable backups reduce ransomware risk and identify their limitations.
  5. Discuss why disaster-recovery testing is necessary even when architecture appears resilient.

Analytical / Application Questions

  1. A service has an RTO of four hours. Detection takes 20 minutes, authorisation takes 15 minutes, and validation takes 25 minutes. What is the maximum time available for technical recovery under the sequential model, and what assumptions does this calculation make?
  2. Design a recovery strategy for a hospital appointment system with an RPO of 15 minutes and an RTO of one hour. Identify its critical dependencies, replication approach, backup controls, and testing plan.
  3. An organisation proposes active-active multi-region deployment solely because it appears more advanced than warm standby. Evaluate this proposal using cost, consistency, operational skill, testing, and business impact criteria.

Multiple Choice Questions with Answers

Question 1

Which statement best distinguishes RTO from RPO?

A. RTO measures acceptable data loss, while RPO measures recovery cost.

B. RTO measures acceptable recovery time, while RPO measures acceptable data loss in time.

C. RTO measures replication speed, while RPO measures availability.

D. RTO and RPO are two names for the same metric.

Correct Answer: B. RTO measures acceptable recovery time, while RPO measures acceptable data loss in time.

Question 2

A service has 99.9% availability over an assumed 30-day month. Approximately how much downtime does this permit?

A. 4.32 minutes

B. 14.4 minutes

C. 43.2 minutes

D. 432 minutes

Correct Answer: C. 43.2 minutes

Question 3

Which control most directly protects backups from ransomware deletion?

A. Placing all backups in the production account

B. Using immutable retention-locked storage

C. Reducing backup frequency to once per month

D. Disabling backup encryption

Correct Answer: B. Using immutable retention-locked storage

Question 4

Which arrangement normally provides the fastest recovery but greatest operational complexity?

A. Cold infrastructure with weekly backups

B. Daily logical exports only

C. Active-active multi-region service

D. Manual restoration from tape

Correct Answer: C. Active-active multi-region service

Question 5

What is a hard dependency?

A. A dependency that can be unavailable without affecting service

B. A dependency required for the service to operate

C. A dependency owned by a different cloud provider only

D. A dependency used only during annual testing

Correct Answer: B. A dependency required for the service to operate

Question 6

What is a principal risk of asynchronous replication?

A. It cannot copy data across regions

B. It always prevents corruption from spreading

C. The secondary copy may lag behind the primary

D. It requires every write to be confirmed twice before completion

Correct Answer: C. The secondary copy may lag behind the primary

Question 7

A recovery process has detection time of 20 minutes, decision time of 10 minutes, technical recovery of 90 minutes, and validation of 30 minutes. Under a sequential model, what is the RTO achieved?

A. 100 minutes

B. 120 minutes

C. 150 minutes

D. 180 minutes

Correct Answer: C. 150 minutes

Question 8

Which statement about snapshots is most accurate?

A. Every snapshot is automatically an off-site backup

B. Snapshots cannot be used for point-in-time recovery

C. A snapshot may fail as a disaster-recovery copy if it shares the production failure domain

D. Snapshots never preserve historical states

Correct Answer: C. A snapshot may fail as a disaster-recovery copy if it shares the production failure domain

Question 9

Why are idempotency identifiers useful in disaster recovery?

A. They increase storage capacity

B. They prevent retried transactions from being processed more than once

C. They encrypt database backups

D. They eliminate the need for monitoring

Correct Answer: B. They prevent retried transactions from being processed more than once

Question 10

Which activity best verifies that a backup is genuinely recoverable?

A. Checking only that the backup job reports success

B. Measuring the backup file name length

C. Performing a controlled restoration and validating the recovered data

D. Deleting the original production data

Correct Answer: C. Performing a controlled restoration and validating the recovered data

Cloud Infrastructure and Deployment Strategies
Chapter 11 of 14