0
0
DynamoDBquery~10 mins

Point-in-time recovery (PITR) in DynamoDB - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Point-in-time recovery (PITR)
Enable PITR on Table
Continuous Backups
Data Changes Recorded
Choose Recovery Time
Restore Table to Chosen Time
New Table Created with Restored Data
PITR keeps continuous backups of your DynamoDB table. You pick a time, and it restores the table to that exact moment.
Execution Sample
DynamoDB
1. Enable PITR on 'Orders' table
2. Make changes: add, update, delete items
3. Choose recovery time: 10:00 AM
4. Restore table to 10:00 AM state
Shows enabling PITR, making changes, then restoring the table to a past time.
Execution Table
StepActionBackup StateRecovery Time ChosenResult
1Enable PITR on 'Orders'Backups start from nowNonePITR enabled
2Add item ABackup records item ANoneItem A added
3Update item BBackup records updateNoneItem B updated
4Delete item CBackup records deletionNoneItem C deleted
5Choose recovery time 10:00 AMBackups up to 10:00 AM10:00 AMRecovery time set
6Restore table to 10:00 AMBackups used to restore10:00 AMNew table with data as of 10:00 AM created
7Use restored tableN/A10:00 AMData reflects state at 10:00 AM
💡 Restoration completes with a new table reflecting the chosen point in time.
Variable Tracker
VariableStartAfter Step 2After Step 3After Step 4After Step 6
Table DataEmptyItem A addedItem B updatedItem C deletedRestored to 10:00 AM state
Key Moments - 2 Insights
Why does PITR create a new table instead of changing the original?
Because the original table keeps changing, PITR restores data to a new table to avoid overwriting current data, as shown in step 6 of the execution_table.
Can I restore to a time before PITR was enabled?
No, PITR only keeps backups from when it was enabled, so recovery times before enabling are not available, as seen in step 1 where backups start.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the backup state after adding item A?
ABackups start from now
BBackup records deletion
CBackup records item A
DBackups up to 10:00 AM
💡 Hint
Check the 'Backup State' column at step 2 in the execution_table.
At which step is the recovery time chosen?
AStep 4
BStep 5
CStep 6
DStep 7
💡 Hint
Look for 'Choose recovery time' action in the execution_table.
If PITR was not enabled, what would happen when trying to restore?
ARestoration would fail because no backups exist
BRestoration would create a new table anyway
COriginal table would be overwritten
DRestoration would restore to current time
💡 Hint
Refer to step 1 where backups start only after PITR is enabled.
Concept Snapshot
Point-in-time recovery (PITR) in DynamoDB:
- Enable PITR to start continuous backups
- Changes are recorded automatically
- Choose any time within retention to restore
- Restoration creates a new table with data at that time
- Original table remains unchanged during recovery
Full Transcript
Point-in-time recovery (PITR) in DynamoDB allows you to protect your table data by continuously backing up changes. Once enabled, every change to the table is recorded. When you want to recover, you pick a specific time, and DynamoDB creates a new table that reflects the data as it was at that moment. This way, your original table stays safe and unchanged. PITR only works from the time you enable it, so you cannot restore to times before activation. This process helps you fix mistakes or recover lost data easily.