0
0
DynamoDBquery~10 mins

On-demand backups in DynamoDB - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - On-demand backups
Start Backup Request
Check Table Exists?
NoError: Table Not Found
Yes
Create Backup
Backup Status: CREATING
Backup Status: AVAILABLE
Backup Ready for Use
The flow starts with a backup request, checks if the table exists, creates the backup, waits for it to become available, then the backup is ready to use.
Execution Sample
DynamoDB
aws dynamodb create-backup --table-name Music --backup-name MusicBackup1
This command creates an on-demand backup of the 'Music' table named 'MusicBackup1'.
Execution Table
StepActionInputOutputStatus
1Receive backup requestTable: Music, BackupName: MusicBackup1Request acceptedPending
2Check if table existsTable: MusicTable foundPending
3Start backup creationTable: MusicBackup creation startedCREATING
4Wait for backup completionBackup: MusicBackup1Backup status updatedCREATING
5Backup creation completeBackup: MusicBackup1Backup availableAVAILABLE
6Backup readyBackup: MusicBackup1Backup can be usedAVAILABLE
💡 Backup status is AVAILABLE, so the on-demand backup is complete and ready.
Variable Tracker
VariableStartAfter Step 2After Step 3After Step 5Final
TableExistsUnknownTrueTrueTrueTrue
BackupStatusNoneNoneCREATINGAVAILABLEAVAILABLE
Key Moments - 3 Insights
Why do we check if the table exists before creating a backup?
Because if the table does not exist (see Step 2 in execution_table), the backup cannot be created and the process stops with an error.
What does the backup status 'CREATING' mean?
It means the backup process has started but is not finished yet (see Steps 3 and 4). The backup is not usable until the status changes to 'AVAILABLE'.
When is the backup ready to use?
When the backup status is 'AVAILABLE' (see Step 5 and 6), the backup is complete and can be restored or copied.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the backup status after Step 3?
ACREATING
BAVAILABLE
CPENDING
DFAILED
💡 Hint
Check the 'Status' column in the row for Step 3 in the execution_table.
At which step does the backup become ready for use?
AStep 5
BStep 6
CStep 4
DStep 2
💡 Hint
Look at the 'Action' and 'Status' columns in the execution_table for when the backup is 'AVAILABLE' and ready.
If the table does not exist, what happens according to the concept_flow?
ABackup is created anyway
BBackup status is AVAILABLE
CError: Table Not Found
DBackup creation starts but fails later
💡 Hint
Refer to the decision after 'Check Table Exists?' in the concept_flow diagram.
Concept Snapshot
On-demand backups in DynamoDB:
- Use create-backup command with table and backup names.
- System checks if the table exists first.
- Backup status moves from CREATING to AVAILABLE.
- Backup is ready to use only when AVAILABLE.
- Errors occur if table not found.
Full Transcript
On-demand backups in DynamoDB start when you request a backup for a specific table. The system first checks if the table exists. If it does not, an error stops the process. If the table exists, the backup creation begins and the status is 'CREATING'. Once the backup is complete, the status changes to 'AVAILABLE', meaning the backup is ready to use. This process ensures your data is safely saved and can be restored later if needed.