Skip to Content
Asterrr's Handbook
5 · Data protection

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.

deployschedulecopy jobBackup policyBackup plan,tag-basedVault in sourceRegionLocked vault,other accountand Region
An Organizations backup policy applies plans in member accounts. Recovery points are encrypted by the vault key and copied to another Region and account.
0–90 days
Retention range for FSx for Lustre automatic daily backups.
35 days
Longest RDS automated backup retention.

AWS Backup

PieceWhat it does
Backup planRules with a schedule, backup window, lifecycle (warm to cold storage), retention and copy actions to another Region or account
Resource assignmentSelects resources by tag, ARN or type, so new resources tagged backup=gold are covered automatically
Backup vaultContainer for recovery points, with its own KMS key and an access policy (for example, deny DeleteRecoveryPoint to everyone)
Organization backup policyDefined 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 ManagerFrameworks of controls ("resources are in a plan", "backups are copied cross-Region", "vault is locked") with reports
Legal holdKeeps selected recovery points past their retention until the hold is released
LifecycleWarm storage to cold storage on a schedule where the resource type allows
MonitoringEventBridge, CloudWatch, SNS and CloudTrail integration
ImmutabilityVault 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/rds can'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.

NeedDLMAWS Backup
EBS snapshot and AMI schedules onlyYesYes
RDS, DynamoDB, EFS, FSx, S3 and moreNoYes
Immutable (locked) retentionNoYes
Organization-wide policies and audit reportsNoYes
Application-consistent pre and post scripts on EC2Yes, through SSM documentsYes (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

NeedControl
CloudTrail logs weren't altered or deletedLog file integrity validation: hourly signed digest files with SHA-256 hashes; validate with aws cloudtrail validate-logs
Objects weren't corrupted on upload or copyS3 checksums (CRC64NVME by default, or SHA-256 you supply), checked on upload and stored with the object
Transfer copied data faithfullyDataSync verification modes
Lambda runs only code your team signedAWS Signer signing profile plus a Lambda code signing configuration set to Enforce
Container images weren't tampered withSign images with AWS Signer (Notation) and verify at deploy time
Backups can actually be restoredRestore testing in AWS Backup: scheduled restores of selected recovery points, optional validation with Lambda, automatic clean-up
72 hours
Minimum grace time before a compliance-mode Backup Vault Lock becomes immutable.
7 days
Minimum retention on a logically air-gapped vault.
0–90 days
Retention range for FSx for Lustre automatic daily backups.
35 days
Longest RDS automated backup retention.

Ransomware resilient design

  1. Immutable copies. Backup Vault Lock in compliance mode or S3 Object Lock.
  2. Administrative separation. Copy to a different account with different credentials, and SCPs that block deletion there.
  3. Regional separation. Cross-Region copies with their own KMS keys.
  4. Alerts on vault changes and backup failures with EventBridge, SNS and GuardDuty.
  5. Regular restore testing.

Vault Lock modes and the air-gapped vault are on Immutable storage and Vault Lock.

Scenarios

Scenario
A backup administrator's cross-account copy job fails for an Amazon RDS for MySQL database, while EFS copies to the same destination vault succeed. The database is encrypted with the aws/rds key. What should the administrator do?
Scenario
An audit committee asks for evidence that the company's nightly backups of critical EC2 instances and Aurora clusters can be restored, with the least manual effort. What should the security engineer set up?

Further reading

On this page