DynamoDB Point-in-time recovery aka “PITR” helps to protect your DynamoDB tables from accidental write or delete operations. With point-in-time recovery, you do not have to worry about creating, maintaining, or scheduling on-demand backups. For example, suppose that a test script writes accidentally to a production DynamoDB table. With point-in-time recovery, you can restore that table to any point in time during the last 35 days. DynamoDB maintains incremental backups of your table. By default, PITR is disabled.
Now let us say we get some unwanted records in ProductCatalog table as highlighted below.
Follow the below steps to restore ProductCatalog using Point-in-time-recovery.
Note : You can restore the table to the same AWS Region or to a different Region from where the backup resides. You can also exclude secondary indexes from being created on the new restored table. In addition, you can specify a different encryption mode.
The table that is being restored is shown with the status Restoring. After the restore process is finished, the status of the ProductCatalogPITR table changes to Active.