Profile Applicability: Level 1
Description:
Enabling backup and recovery ensures that critical database data can be restored in the event of an accidental deletion, corruption, or disaster. AWS database services like RDS, QLDB, and DocumentDB offer built-in features to automate and manage backups effectively.
Rationale:
Having backup and disaster recovery mechanisms in place helps mitigate the impact of data loss, supports business continuity, and ensures data durability and compliance with industry standards.
Impact:
Without backup and recovery, organizations risk permanent data loss, operational disruption, and potential compliance violations.
Default Value:
Backups may not be enabled by default. Each AWS database service (e.g., RDS, QLDB, DocumentDB) requires configuration for backup policies.
Pre-requisites:
A running database instance or cluster in AWS
IAM permissions to modify backup settings
Test Plan
Using AWS Console:
Sign in to the AWS Management Console
Navigate to the respective database service console (e.g., RDS, QLDB, DocumentDB)
Select the target database
Verify that automated backups are enabled and a retention window is set
Using AWS CLI:
Check backup status for RDS:
aws rds describe-db-instances --query "DBInstances[*].BackupRetentionPeriod"
Check QLDB backup configuration (no direct CLI command; confirm journal export setup)
Check DocumentDB backup settings:
aws docdb describe-db-clusters --query "DBClusters[*].BackupRetentionPeriod"
Implementation Plan
Using AWS Console:
Sign in to the AWS Management Console
Navigate to RDS, QLDB, or DocumentDB service
Select the target database
Click Modify or go to Configuration tab
Enable Automated Backups
Set the desired backup retention period (e.g., 7 days)
Save the changes
Using AWS CLI:
For RDS:
aws rds modify-db-instance --db-instance-identifier <instance-id> --backup-retention-period 7 --apply-immediately
For DocumentDB:
aws docdb modify-db-cluster --db-cluster-identifier <cluster-id> --backup-retention-period 7 --apply-immediately
For QLDB, set journal export and backup via the console or custom Lambda (CLI options are limited)
Backout Plan
Using AWS Console:
Sign in to the AWS Management Console
Navigate to the respective service
Select the database
Click Modify
Set the backup retention period to 0 to disable backups
Save the changes
Using AWS CLI:
For RDS:
aws rds modify-db-instance --db-instance-identifier <instance-id> --backup-retention-period 0 --apply-immediately
For DocumentDB:
aws docdb modify-db-cluster --db-cluster-identifier <cluster-id> --backup-retention-period 0 --apply-immediately
References: