Centralising Backups with AWS Backup
Backups are the last line of defence against data loss, corruption and ransomware, and they are the basis of the backup-and-restore recovery strategy. AWS Backup manages backups for many AWS services from one place. This lesson explains backup plans, vaults and their protection, cross-Region and cross-account copies, organisation-wide backup policies, continuous backups and restore testing.
Learning outcomes
After completing this lesson, you will be able to:
- Describe backup plans, backup rules, resource assignments and backup vaults.
- Explain cross-Region and cross-account copies and how they support recovery objectives.
- Explain how vault access policies, AWS Backup Vault Lock and logically air-gapped vaults protect backups.
- Describe organisation backup policies, continuous backups, restore testing and backup auditing.
Why a Central Backup Service
Each AWS service has its own backup feature: EBS snapshots, RDS automated backups, DynamoDB backups, EFS backups and so on. Managing them separately leads to inconsistent schedules, missed resources and no single view of compliance. AWS Backup applies one policy-driven approach to EC2 instances, EBS volumes, RDS and Aurora, DynamoDB, EFS, FSx, S3, Storage Gateway volumes, DocumentDB, Neptune, Redshift, CloudFormation stacks, EKS and others, and records every job centrally.
Plans, Rules, Assignments and Vaults
AWS Backup is configured through a few resources.
- Backup plan
- A policy containing one or more backup rules.
- Backup rule
- A schedule (cron or frequency, down to hourly), a start window and completion window, a target vault, a lifecycle that moves recovery points to cold storage after a number of days and deletes them after a retention period, optional copy actions to other vaults, and whether continuous backup is enabled.
- Resource assignment
- Selects the resources a plan protects, by resource ARN, resource type or tags, such as every resource tagged
backup=daily. Tag-based assignment protects new resources automatically as soon as they are tagged. - Backup vault
- A container for recovery points, encrypted with a KMS key, with an optional access policy.
- Recovery point
- A backup of a resource at a point in time, such as an EBS snapshot or an RDS snapshot managed by AWS Backup.
Tag-based assignment is the key to scale: teams tag resources according to their tier, and the matching plan protects them without per-resource configuration. AWS Config rules or Backup Audit Manager controls then detect resources that are not protected.
AWS Backup resources
Cross-Region and Cross-Account Copies
A backup in the same account and Region as the resource is lost if the Region becomes unavailable or if the account is compromised. Copy actions in a backup rule copy each recovery point to a vault in another Region, another account or both, with its own lifecycle. Cross-Region copies support Regional recovery with the backup-and-restore strategy. Cross-account copies, usually to a dedicated backup account in the organisation, protect against an attacker or a mistake in the workload account deleting both the resources and their backups. Cross-account copies require AWS Organizations, the destination vault's access policy to allow the source account, and encryption keys the destination can use, which in practice means customer managed KMS keys for services whose backups use the source service's encryption.
Copies in exam scenarios
When a scenario requires backups to survive the compromise of a workload account, the answer combines cross-account copies to a separate backup account with a locked vault. When it requires recovery in another Region, the answer includes cross-Region copy actions.
Protecting the Backups
Backups are a target for ransomware, which tries to delete them before encrypting data. AWS Backup offers layered protection, described below.
- Vault access policies: resource-based policies on a vault, for example denying
backup:DeleteRecoveryPointto everyone except a specific role. - AWS Backup Vault Lock: enforces minimum and maximum retention for every recovery point in the vault. In governance mode, users with specific IAM permissions can remove the lock. In compliance mode, after a grace period of at least 72 hours, the lock becomes immutable: no one, including the root user and AWS, can delete recovery points before their retention ends or change the lock. Compliance mode supports regulatory write-once-read-many (WORM) requirements.
- Logically air-gapped vaults: vaults that store backups in an AWS-owned account, locked in compliance mode, which can be shared with other accounts through AWS RAM for fast recovery, isolating backups even from a compromised organisation.
- SCPs: deny actions that delete vaults, recovery points or change lock settings across the organisation.
Protect the backups
Organisation Policies, Continuous Backup and Testing
Backup policies in AWS Organizations define backup plans centrally and attach them to OUs or accounts. Each account receives the plan automatically, and local administrators cannot weaken it. Cross-account monitoring in the management or delegated administrator account shows backup, copy and restore jobs across the organisation.
Continuous backup is available for Amazon RDS, Aurora, Amazon S3 and SAP HANA on EC2. It enables point-in-time restore to any second within up to 35 days, giving an RPO of minutes rather than the interval between snapshots.
An untested backup may not restore. Restore testing runs restore jobs automatically on a schedule for selected resource types and recovery points, optionally runs validation, for example with a Lambda function that checks the restored database, records the restore duration, which is evidence of achievable RTO, and deletes the restored resources afterwards. Backup Audit Manager, a feature of AWS Backup, evaluates backup practices against controls, such as minimum frequency and retention, cross-Region copies and vault lock, and produces reports for auditors. Backup events are published to EventBridge, so failed jobs can trigger notifications.
Ransomware-Resilient Backups
A healthcare company must keep daily backups of all production databases and file systems for seven years, be able to restore them in another Region, and ensure that no administrator, including one with a compromised production account, can delete them.
-
Policy
Define a backup policy in Organizations attached to the Prod OU: daily backups with continuous backup for RDS, cold storage after 90 days and seven-year retention, assigned by tag.
-
Copies
Add copy actions to a vault in a dedicated backup account in the organisation and to a vault in the recovery Region of that account.
-
Locking
Apply Vault Lock in compliance mode to the backup account's vaults after testing in governance mode.
-
Verification
Configure monthly restore testing with a validation function and Backup Audit Manager reports for the auditors.
A Vault Lock in compliance mode has passed its grace period. An administrator tries to shorten the retention of existing recovery points. What happens?
Show answer
The request is denied. After the grace period, a compliance-mode lock is immutable: recovery points cannot be deleted early and the lock cannot be changed or removed by anyone, including the root user.
Exam Tips
Remember for the exam
- AWS Backup plans contain rules (schedule, windows, lifecycle, retention, copy actions); assign resources by tag to protect new resources automatically.
- Copy recovery points cross-Region for Regional recovery and cross-account to a backup account for protection against account compromise.
- Vault Lock compliance mode becomes immutable after a grace period of at least 72 hours; governance mode can be removed with permissions; logically air-gapped vaults add isolation.
- Organizations backup policies apply plans to OUs; continuous backup gives point-in-time restore for RDS, Aurora and S3.
- Restore testing proves backups work and measures restore time; Backup Audit Manager reports compliance.