Lesson 2 of 3 AWS Backup and Data Versioning

Testing Restores and Automating EBS Snapshots

This lesson explains AWS Backup restore testing and monitoring, and the EBS snapshot automation and protection features that appear in exam questions, since backups are only useful if they restore.

Learning outcomes

After completing this lesson, you will be able to:

  • Schedule restore testing plans.
  • Automate snapshots with Data Lifecycle Manager.
  • Protect snapshots with Recycle Bin.

Restore testing and monitoring

Restore testing in AWS Backup runs restore testing plans on a schedule: it selects recovery points from protected resources (latest or random within a window), restores them, optionally runs a validation (for example a Lambda function triggered by the restore job's EventBridge event that checks the database is readable), records the restore duration and deletes the restored resources after a retention period. This proves that backups work and measures actual restore times against RTO. AWS Backup jobs publish metrics and events to CloudWatch and EventBridge, vault notifications go to SNS, and Backup Audit Manager evaluates controls such as minimum frequency, retention, encryption and cross-Region copy.

EBS snapshots and Data Lifecycle Manager

EBS snapshots are incremental: only blocks changed since the previous snapshot are stored, but each snapshot can restore the full volume. Snapshots are crash-consistent; application-consistent snapshots of Windows instances use VSS, and multi-volume snapshots capture all volumes of an instance at the same point. Amazon Data Lifecycle Manager (DLM) automates creation, retention, cross-Region and cross-account copy, and deletion of EBS snapshots and EBS-backed AMIs through lifecycle policies that target volumes or instances by tag. DLM is EBS-specific; AWS Backup covers more services and adds vaults and Vault Lock.

The EBS Snapshots Archive tier stores rarely accessed full snapshots for at least 90 days at much lower cost, with a restore time of up to 72 hours. Recycle Bin retention rules keep deleted snapshots and AMIs (and their snapshots) for a period so they can be recovered after accidental deletion; rules can be locked to prevent tampering. Block public access for snapshots prevents snapshots being shared publicly in a Region.

RequirementFeature
Hourly snapshots of tagged volumes with 7-day retentionData Lifecycle Manager policy
Backups across EC2, RDS, DynamoDB and EFS with immutabilityAWS Backup with Vault Lock
Recover a snapshot deleted by mistakeRecycle Bin retention rule
Keep yearly snapshots cheaply for 7 yearsEBS Snapshots Archive
Prove backups can be restoredAWS Backup restore testing

The following diagram shows a DLM policy from tagged instances to copied snapshots.

Automating EBS snapshots with Data Lifecycle Manager. A lifecycle policy targets volumes or instances by tag, creates snapshots on a schedule, keeps a set number, copies them to another Region or account, and deletes the oldest. Multi-volume snapshots capture all of an instance's volumes at one point in time.
The schedule, counts and Region are illustrative.
Scenario questions

Snapshot protection

Exam skills 2.3.1

Choose the feature for each EBS snapshot requirement.

Log in to try this activity Interactive activities are free with an account.
Worked example

Accidental snapshot deletion

A cleanup script deleted the snapshots of a production volume. Because the account has a Recycle Bin retention rule for all EBS snapshots with 14 days of retention, the operator lists the snapshots in Recycle Bin and restores the required ones; they return to the account with their original IDs. The team then locks the retention rule so that it cannot be deleted or shortened without an unlock delay, and adds a condition to the script's IAM role that denies deleting snapshots tagged retain=true.

Check yourself

How can you prove that backups restore, and how long they take?

Show answer

With AWS Backup restore testing plans.

Exam Tips

Remember for the exam

  • Restore testing plans prove backups restore and measure restore time.
  • EBS snapshots are incremental; DLM automates snapshot and AMI lifecycles by tag.
  • Recycle Bin recovers deleted snapshots and AMIs within the retention period.
  • EBS Snapshots Archive lowers cost for long-term snapshots (90-day minimum).