SkillSprout
Chapter 2 · Lesson 3
Intermediate
6 min read

AWS Backup and Data Protection

Overview

AWS Backup is a centralised, policy-based service for backing up AWS resources: EBS, EFS, FSx, RDS, Aurora, DynamoDB, S3, EC2 (AMIs), DocumentDB, Storage Gateway and more. You define a backup plan (schedule, lifecycle, destination) and assign resources by tags, instead of scripting snapshots per service.

Compare it with a company's safe: instead of each department keeping its own lockbox with its own rules, there is one vault, one policy and one audit trail. If you must prove a backup exists and cannot be deleted, a central approach is far easier.

SysOps administrators are responsible for meeting RPO/RTO targets, validating restores and protecting backups from deletion and ransomware.

Key Concepts

  • Backup plan: rules (schedule, window, lifecycle to cold storage, retention) + resource assignments (by tag or ARN).
  • Backup vault stores recovery points and is encrypted with KMS; Vault Lock (compliance mode) makes backups immutable (WORM).
  • Cross-Region and cross-account copy protect against Region loss and account compromise; logically air-gapped vaults add isolation.
  • Point-in-time recovery (PITR) is supported for RDS, Aurora, DynamoDB, S3 (continuous backup) with restore to any second in the retention window (up to 35 days; S3 PITR configurable).
  • EBS snapshots are incremental and stored in S3 behind the scenes; automate with Data Lifecycle Manager (DLM) or AWS Backup.
  • Backup Audit Manager and AWS Backup reports show compliance with backup policies; restore testing validates recoverability.
  • RPO (data loss tolerance) drives backup frequency; RTO (downtime tolerance) drives restore method.
  • Organization backup policies apply plans across member accounts.

Detailed Notes

Backup service choices

ResourceNative optionAWS Backup adds
EBSSnapshots, DLMCentral schedule, cross-account copy, audit
RDS / AuroraAutomated backups (PITR up to 35 d), manual snapshotsLonger retention, vault lock, copy
DynamoDBPITR, on-demand backupLifecycle, cross-Region copy
EFSAutomatic backups via BackupPlans, cold tier
S3Versioning, replicationContinuous backups / PITR

Creating a plan

json
{
  "BackupPlanName": "prod-daily",
  "Rules": [{
    "RuleName": "daily-35d",
    "TargetBackupVaultName": "prod-vault",
    "ScheduleExpression": "cron(0 5 ? * * *)",
    "StartWindowMinutes": 60,
    "CompletionWindowMinutes": 360,
    "Lifecycle": { "MoveToColdStorageAfterDays": 30, "DeleteAfterDays": 365 },
    "CopyActions": [{
      "DestinationBackupVaultArn": "arn:aws:backup:eu-west-1:111122223333:backup-vault:dr-vault",
      "Lifecycle": { "DeleteAfterDays": 365 } }]
  }]
}
bash
aws backup create-backup-plan --backup-plan file://plan.json
aws backup create-backup-selection --backup-plan-id <ID> --backup-selection '{
  "SelectionName":"tagged","IamRoleArn":"arn:aws:iam::111122223333:role/BackupRole",
  "ListOfTags":[{"ConditionType":"STRINGEQUALS","ConditionKey":"backup","ConditionValue":"daily"}]}'

Tag-based selection means new resources tagged backup=daily are protected automatically.

Protection from deletion

bash
aws backup put-backup-vault-lock-configuration --backup-vault-name prod-vault \
  --min-retention-days 7 --max-retention-days 365 --changeable-for-days 3

A vault lock with a grace period (cooling-off) can still be changed; after it expires it becomes compliance mode and not even root can delete recovery points early.

Restores

ItemNotes
EBSRestore creates a new volume from a snapshot; attach to an instance
RDSRestore creates a new DB instance (new endpoint) – update the application
EFSRestore to new file system or into a directory
Cold-storage recovery pointsMinimum 90-day retention in cold; restoring may take longer

Fast snapshot restore (FSR) removes initial EBS first-read latency for critical volumes at an extra charge. Newly restored EBS volumes from snapshots are lazily loaded; pre-warm using fio or FSR.

Data Lifecycle Manager

bash
aws dlm create-lifecycle-policy --description "daily snapshots" --state ENABLED \
  --execution-role-arn arn:aws:iam::111122223333:role/AWSDataLifecycleManagerDefaultRole \
  --policy-details file://dlm.json

Monitoring backups

  • EventBridge events for backup/restore job state (alert on FAILED/EXPIRED).
  • Backup Audit Manager frameworks (e.g. "backup plan frequency", "resources protected").
  • CloudWatch metrics NumberOfBackupJobsFailed.

Common problems

ProblemFix
Job fails with access deniedBackup service role missing permissions / KMS key policy
Cross-account copy failsDestination vault access policy and key sharing
Resource not backed upTag typo, resource type not enabled in Backup settings
FeatureDetail
Backup plan / ruleSchedule, lifecycle (cold storage after N days, delete after N), copy actions
Resource assignmentBy tag or ARN; use tags so new resources are protected automatically
Vault LockGovernance or compliance mode; compliance becomes immutable after the cooling-off period
Restore testingScheduled automatic restores to validate recoverability
Backup Audit ManagerReports and controls to prove policy compliance
Logically air-gapped vaultIsolated vault for stronger ransomware recovery
Organization policiesBackup policies from the management account across accounts
bash
aws backup start-restore-job --recovery-point-arn arn:aws:backup:us-east-1:111122223333:recovery-point:abc \
  --iam-role-arn arn:aws:iam::111122223333:role/BackupRestore --metadata file://restore-metadata.json
aws backup start-copy-job --recovery-point-arn <arn> --source-backup-vault-name Default \
  --destination-backup-vault-arn arn:aws:backup:eu-west-1:444455556666:backup-vault:dr --iam-role-arn <role>

A backup is only proven by a successful restore. Encrypted backups need KMS key access in the destination (use a customer managed key and share it for cross-account copies). Restoring EC2 gives a new instance from an AMI plus volumes; restoring RDS creates a new DB instance, not an in-place overwrite.

Real World Example

Scenario – ransomware readiness. A healthcare company must retain patient-system backups for 7 years and prove they cannot be altered. The team defines a tag-driven AWS Backup plan: daily backups for 35 days, monthly kept 7 years with cold storage, and a copy to a separate backup account in another Region protected with Vault Lock in compliance mode.

Quarterly restore testing validates RTO, and Backup Audit Manager produces evidence reports. When a developer's credentials are abused, the attacker cannot delete the recovery points.

Architecture Diagram

Centralised backup with cross-account copy
Architecture
AWS Cloud
Workload account
EBS / EC2tag backup=daily
RDS
Backup vaultKMS + lock
Backup account / DR Region
Locked vault
  1. 1Resources are tagged so the backup selection picks them up.
  2. 2The plan runs on schedule and stores recovery points in an encrypted vault.
  3. 3A copy action replicates recovery points to another Region and account.
  4. 4Vault Lock prevents deletion; restore testing validates recovery.

Best Practices

  • ✓Use tag-based selection so every new resource is protected automatically.
  • ✓Copy backups cross-Region and cross-account; enable Vault Lock for immutability.
  • ✓Define RPO/RTO per tier and map each to frequency and restore method.
  • ✓Test restores regularly, not just backups; automate with restore testing.
  • ✓Alert on failed backup jobs via EventBridge and review Audit Manager reports.

Common Interview Questions

Exam Tips

SOA-C03 focus

  • Central, policy-based backup across services/accounts -> AWS Backup.
  • Immutable / WORM backups -> Backup Vault Lock.
  • Automate EBS snapshot schedules -> DLM (or Backup).
  • Restores create new resources; plan for endpoint/ID changes.

Finished this lesson?

0 of 46 lessons done · 0% of the course