AWS Backup, DLM and DataSync
Centralized backup plans and vaults, EBS snapshot lifecycle automation, and encrypted data transfer, with ransomware-resilient patterns.
Exam tasks: 5.2.2 (integrity: code signing, file validation), 5.2.3 (retention: FSx for Lustre and other backups), 5.2.4 (secure replication and backup: DLM, AWS Backup, ransomware protection, DataSync)
The decision: which service schedules, copies and transfers the data, and how do you prove the copy is intact and can be restored?
AWS Backup centralizes backups across services. Data Lifecycle Manager (DLM) automates EBS snapshots and EBS-backed AMIs only. DataSync moves data between on premises and AWS.
AWS Backup
| Piece | What it does |
|---|---|
| Backup plan | Rules with a schedule, backup window, lifecycle (warm to cold storage), retention and copy actions to another Region or account |
| Resource assignment | Selects resources by tag, ARN or type, so new resources tagged backup=gold are covered automatically |
| Backup vault | Container for recovery points, with its own KMS key and an access policy (for example, deny DeleteRecoveryPoint to everyone) |
| Organization backup policy | Defined in the management account or a delegated administrator, attached to OUs; deploys plans to every member account and stops local admins editing them |
| Backup Audit Manager | Frameworks of controls ("resources are in a plan", "backups are copied cross-Region", "vault is locked") with reports |
| Legal hold | Keeps selected recovery points past their retention until the hold is released |
| Lifecycle | Warm storage to cold storage on a schedule where the resource type allows |
| Monitoring | EventBridge, CloudWatch, SNS and CloudTrail integration |
| Immutability | Vault Lock |
Encryption of backups
- For resource types fully managed by AWS Backup (for example EFS, DynamoDB with advanced features, S3), the recovery point is encrypted with the vault's KMS key.
- For other types (EBS snapshots, RDS snapshots), the backup keeps the source resource's key. That's why an
RDS database encrypted with
aws/rdscan't be copied to another account: its key can't be shared. Use a customer managed key on the source. - Cross-account copies need the destination vault's key policy and the source key policy to allow the other account, and both accounts must be in the same organization.
Amazon Data Lifecycle Manager
- Automates creation, retention (by count or age), cross-Region copy and cross-account sharing of EBS snapshots and EBS-backed AMIs, at no extra charge. Also supports fast snapshot restore and moving snapshots to the archive tier.
- Default policies give every instance or volume in a Region a baseline snapshot schedule without tagging.
- Cross-account copy event policies in a target account automatically copy snapshots shared with it, re-encrypted with the target account's key.
- DLM only manages snapshots it created. For more than EC2 and EBS, central reporting, Vault Lock or org-wide policies, use AWS Backup.
- Supports disaster recovery copies to isolated Regions or accounts and has no extra cost. Quotas are 100 custom policies per Region plus 1 default snapshot policy and 1 default AMI policy per Region.
- DLM cannot manage snapshots or AMIs made another way, and cannot manage instance store-backed AMIs.
Which one to use
DLM covers EBS snapshots and EBS-backed AMIs only. AWS Backup covers the rest of the estate and adds locking and reporting.
| Need | DLM | AWS Backup |
|---|---|---|
| EBS snapshot and AMI schedules only | Yes | Yes |
| RDS, DynamoDB, EFS, FSx, S3 and more | No | Yes |
| Immutable (locked) retention | No | Yes |
| Organization-wide policies and audit reports | No | Yes |
| Application-consistent pre and post scripts on EC2 | Yes, through SSM documents | Yes (VSS for Windows) |
Exam signal
"Central policy for backups across all accounts" means Organizations backup policies with AWS Backup. "Automate EBS snapshots on a schedule with retention" means DLM.
Exam trap
SCPs do not deploy backup plans. Backup policies are a separate Organizations policy type. SCPs only help by blocking deletion.
DataSync and secure replication
- S3 Replication (same- or cross-Region): versioning on both buckets; for SSE-KMS objects, opt in and grant the replication role Decrypt on the source key and Encrypt on the destination key. Use owner override so the destination account owns replicas, and consider not replicating delete markers so a malicious delete in the source doesn't propagate.
- AWS DataSync moves file or object data between on-premises storage (NFS, SMB, HDFS, object storage) and S3, EFS or the FSx family. It encrypts in transit with TLS, validates integrity on every transfer, uses IAM roles for AWS storage, and can run through an interface VPC endpoint so transfers from on-premises stay on your Direct Connect or VPN. It writes with the destination's default encryption.
- DataSync verifies checksums during every transfer. Choose Verify only transferred data (recommended), Verify all data, or no final check.
Retention on file and storage services
- FSx for Lustre backs up only persistent file systems not linked to S3. Automatic daily backups keep 0–90 days (0 turns them off, and it's the default); user-initiated backups never expire. Use AWS Backup for longer retention, hourly schedules and cross-Region copies.
- EFS automatic backups through AWS Backup are on by default for new file systems created in the console.
- RDS automated backups keep up to 35 days; for longer or immutable retention, use AWS Backup.
Proving integrity
| Need | Control |
|---|---|
| CloudTrail logs weren't altered or deleted | Log file integrity validation: hourly signed digest files with SHA-256 hashes; validate with aws cloudtrail validate-logs |
| Objects weren't corrupted on upload or copy | S3 checksums (CRC64NVME by default, or SHA-256 you supply), checked on upload and stored with the object |
| Transfer copied data faithfully | DataSync verification modes |
| Lambda runs only code your team signed | AWS Signer signing profile plus a Lambda code signing configuration set to Enforce |
| Container images weren't tampered with | Sign images with AWS Signer (Notation) and verify at deploy time |
| Backups can actually be restored | Restore testing in AWS Backup: scheduled restores of selected recovery points, optional validation with Lambda, automatic clean-up |
Ransomware resilient design
- Immutable copies. Backup Vault Lock in compliance mode or S3 Object Lock.
- Administrative separation. Copy to a different account with different credentials, and SCPs that block deletion there.
- Regional separation. Cross-Region copies with their own KMS keys.
- Alerts on vault changes and backup failures with EventBridge, SNS and GuardDuty.
- Regular restore testing.
Vault Lock modes and the air-gapped vault are on Immutable storage and Vault Lock.
Scenarios
RDS recovery points keep the source key, and an AWS managed key can't be shared, so the database needs a customer managed key. EFS works because fully managed resources use the vault's key. The aws/rds policy can't be edited, changing the destination vault key doesn't affect RDS snapshots, and the DynamoDB setting is unrelated.
Restore testing proves restorability automatically and records results. A manual runbook works but isn't least effort. Audit Manager proves backups exist, not that they restore. CloudTrail validation proves logs weren't altered, which is unrelated to restores.
Related
Further reading
Immutable storage and Vault Lock
Compare S3 Object Lock, AWS Backup Vault Lock and Amazon Glacier Vault Lock for WORM retention and ransomware-proof backups.
AWS Secrets Manager
Storing and rotating secrets, KMS envelope encryption of secret values, replication, and how it differs from Parameter Store.