SkillSprout
Chapter 11 · Lesson 1
Intermediate
8 min read

Backup Strategies

Overview

A backup is a copy of your data that you can restore after accidental deletion, corruption, ransomware or a failed deployment. Backups are the foundation of every disaster-recovery plan, because high availability features such as Multi-AZ replicate mistakes instantly, but a backup lets you go back in time.

On AWS, most data services have their own native backup features: EBS snapshots, RDS automated backups, DynamoDB point-in-time recovery, and S3 versioning. AWS Backup sits on top and gives you one central policy-based service to schedule, retain, copy and audit backups across many services and accounts.

For the SAA-C03 exam you should be able to choose the right backup mechanism, know the retention limits, and know how to protect backups from deletion and Regional failure.

Key Concepts

  • AWS Backup centrally manages backups for EC2/EBS, RDS, Aurora, DynamoDB, EFS, FSx, S3, Storage Gateway, DocumentDB, Neptune, and more.
  • A backup plan defines schedule, window, lifecycle (move to cold storage, expire) and copy rules; resources are assigned by tag or ARN.
  • A backup vault stores recovery points; Vault Lock gives WORM immutability (compliance mode cannot be removed after the cooling-off period).
  • EBS snapshots are incremental, stored in S3 (managed by AWS), and can be copied across Regions and shared across accounts; Data Lifecycle Manager (DLM) automates them.
  • RDS automated backups retain 0-35 days with point-in-time recovery to any second (typically up to 5 minutes ago); manual snapshots persist until deleted.
  • DynamoDB PITR restores to any second in the last 35 days; on-demand backups persist until deleted.
  • S3 versioning plus MFA Delete and Object Lock protect against deletion and overwrites.
  • Cross-Region and cross-account copies protect against Regional outages and compromised accounts.

Detailed Notes

Why high availability is not a backup

Multi-AZ and replication copy changes immediately, including a mistaken DROP TABLE or ransomware encryption. A backup preserves a previous known-good state. The 3-2-1 rule is a useful design goal: 3 copies, 2 different media/services, 1 offsite (another Region or account).

AWS Backup

AWS Backup is a managed service with policy-based protection.

ComponentPurpose
Backup planRules: frequency (cron), start/complete window, lifecycle, destination vault, copy actions
Resource assignmentChoose resources by tags (e.g. backup=daily) or resource ID
Backup vaultEncrypted container (KMS) for recovery points; has an access policy
Vault LockWORM protection; governance or compliance mode (immutable after the cooling-off period, minimum 3 days)
Recovery pointA single backup of one resource
Cross-Region / cross-account copyCopy to another Region or account (logically air-gapped vault)
Backup Audit ManagerReports on compliance with backup policies
Restore testingAutomated validation that backups can be restored

You can enforce backup policies across an AWS Organization using backup policies. Lifecycle rules can move recovery points to cold storage after a minimum of 1 day (retention in cold storage must be at least 90 days); supported for some resource types such as EFS, DynamoDB, and others.

json
{
  "BackupPlanName": "daily-35d",
  "Rules": [{
    "RuleName": "daily-0200",
    "TargetBackupVaultName": "prod-vault",
    "ScheduleExpression": "cron(0 2 * * ? *)",
    "StartWindowMinutes": 60,
    "CompletionWindowMinutes": 180,
    "Lifecycle": { "DeleteAfterDays": 35 },
    "CopyActions": [{
      "DestinationBackupVaultArn": "arn:aws:backup:eu-west-1:111122223333:backup-vault:dr-vault",
      "Lifecycle": { "DeleteAfterDays": 90 }
    }]
  }]
}

Native backup features by service

ServiceMechanismKey facts
EBSSnapshots (incremental)Stored in S3, copy to other Regions, Fast Snapshot Restore, Archive tier (cheaper, 24-72 h restore), Recycle Bin for deleted snapshots
RDSAutomated backups + snapshotsRetention 0-35 days (default 7), PITR via transaction logs every 5 minutes, snapshots can be copied/shared across Regions/accounts and encrypted copies
AuroraContinuous backup to S31-35 days, PITR, backtrack (MySQL) to rewind without restoring
DynamoDBPITR + on-demandPITR 35 days; restores to a new table
S3Versioning, Object Lock, replicationVersioning protects against overwrite/delete; Object Lock adds WORM
EFSAWS Backup (automatic by default)Incremental, can use cold storage
EC2AMIs and EBS snapshotsAMI = EBS snapshots + launch config; copy AMI across Regions

Restore behaviour

  • Restoring an RDS snapshot or PITR creates a new DB instance with a new endpoint. Update your application or DNS.
  • EBS snapshots restore to a new volume in any AZ of the Region.
  • DynamoDB PITR restores to a new table; indexes, throughput and encryption settings may need reconfiguring.

Protecting backups

  • Vault Lock / Object Lock prevents deletion even by administrators (ransomware defence).
  • Encrypt with KMS; cross-account copies need the key shared with the destination.
  • Copy to a separate account (a "logically air-gapped" vault) so a compromised production account cannot delete them.
  • Use IAM / SCPs to restrict DeleteRecoveryPoint and DeleteSnapshot.
bash
aws ec2 create-snapshot --volume-id vol-0abc123 --description "pre-deploy" \
  --tag-specifications 'ResourceType=snapshot,Tags=[{Key=backup,Value=daily}]'
aws ec2 copy-snapshot --source-region us-east-1 --source-snapshot-id snap-0abc \
  --region eu-west-1 --encrypted
aws backup start-backup-job --backup-vault-name prod-vault \
  --resource-arn arn:aws:rds:us-east-1:111122223333:db:orders \
  --iam-role-arn arn:aws:iam::111122223333:role/BackupRole

Backup and the DR strategies

Backup & restore is the cheapest DR tier but has the longest RTO and the largest RPO (the time since the last backup). Frequency of backups defines your RPO; time to restore defines your RTO. Test restores regularly because an untested backup is not a backup.

On-premises and hybrid

AWS Storage Gateway (volume gateway, tape gateway) and AWS Backup for VMware back up on-premises data to AWS. AWS DataSync and Snowball can move large initial datasets.

Real World Example

Scenario — a retailer defends against ransomware and accidental deletion.

A retailer's orders run on RDS for PostgreSQL, product images are in S3, and application servers use EBS volumes and EFS shares. After a developer accidentally deleted a production table, the company standardises backups with AWS Backup:

  • A backup plan tagged backup=prod takes daily backups kept 35 days and monthly backups moved to cold storage for a year.
  • RDS also has PITR enabled so the lost table can be recovered to a minute before the mistake.
  • Backups are copied to a second Region and to a dedicated backup account with a Vault Lock in compliance mode, so neither a compromised admin nor ransomware can delete them.
  • S3 versioning with Object Lock protects images, and Backup Audit Manager reports compliance to auditors.
  • Restore testing runs quarterly, validating that restores meet the 4-hour recovery objective.

When a ransomware simulation encrypted production data, the team restored from the locked cross-account vault within three hours.

Architecture Diagram

Centralised backups with cross-Region and cross-account copies
Architecture
AWS Cloud
Primary Region
Production account
EC2 / EBS
RDS
EFS
DynamoDB
AWS Backupplan + vault
DR Region
Backup account
Locked vaultVault Lock WORM
KMS key

AWS Backup protects many services and copies recovery points to a locked vault elsewhere.

  1. 1Resources tagged for backup are discovered by the AWS Backup plan.
  2. 2Backups run on the schedule and are stored as recovery points in the production vault.
  3. 3A copy rule sends each recovery point to a vault in another Region and a dedicated backup account.
  4. 4Vault Lock makes the copies immutable; restores create new resources from the recovery points.

Best Practices

  • ✓Define RPO/RTO first, then choose backup frequency, retention and restore method accordingly.
  • ✓Use AWS Backup with tag-based plans and AWS Organizations backup policies for consistent coverage.
  • ✓Follow 3-2-1: copy to another Region and another account; use Vault Lock for immutability.
  • ✓Encrypt all backups with KMS and plan key sharing for cross-account/Region restores.
  • ✓Test restores regularly (automated restore testing) and measure actual RTO.
  • ✓Enable PITR on RDS, Aurora and DynamoDB for fine-grained recovery.
  • ✓Use lifecycle rules to move older backups to cold storage or the EBS snapshot archive tier to cut cost.
  • ✓Restrict deletion with IAM/SCPs, Recycle Bin and S3 Object Lock/MFA Delete.

Common Interview Questions

Exam Tips

SAA-C03 focus

  • "Centrally manage and automate backups across services/accounts" -> AWS Backup.
  • Immutable / WORM backups -> AWS Backup Vault Lock or S3 Object Lock.
  • RDS automated backup retention 0-35 days (default 7). 0 disables automated backups. PITR restores to a new instance.
  • DynamoDB PITR = 35 days; restore creates a new table.
  • EBS snapshots: incremental, stored in S3, can be copied cross-Region and shared; automate with Data Lifecycle Manager.
  • Protect against accidental S3 deletes -> versioning + MFA Delete; against ransomware -> add Object Lock and cross-account copies.
  • Backup & restore has the lowest cost, highest RTO/RPO of the DR strategies.
  • Backups encrypted with KMS need key access in the destination for cross-account/Region restore.

Finished this lesson?

0 of 64 lessons done · 0% of the course