Complete the code to create an on-demand backup of a DynamoDB table.
response = client.create_backup(TableName=[1], BackupName='MyBackup')
The TableName parameter requires the table name as a string, so it must be in quotes.
Complete the code to list all backups for a DynamoDB table.
response = client.list_backups(TableName=[1])The TableName parameter must be a string with the table name in quotes.
Fix the error in the code to delete a backup by its ARN.
response = client.delete_backup(BackupArn=[1])The BackupArn parameter requires the ARN as a string, so it must be in quotes.
Fill all three blanks to create a backup and print the backup ARN.
response = client.create_backup(TableName=[1], BackupName=[2]) print(response['BackupDetails']['[3]'])
You must provide the table name and backup name as strings. The ARN is accessed with the key 'BackupArn'.
Fill all three blanks to list backups filtered by table name and print the backup names.
response = client.list_backups(TableName=[1]) for backup in response['Backups']: print(backup['[2]']) print(backup['[3]'])
We filter backups by table name (string). Then print each backup's name and ARN using the keys 'BackupName' and 'BackupArn'.