
Answer-first summary for fast verification
Answer: Delete then re-create the table
Delete then re-create the table The DeleteTable operation deletes a table and all of its items. After a DeleteTable request, the specified table is in the DELETING state until DynamoDB completes the deletion. Scan and call DeleteItem - Scan is a very slow operation for 10 million items and this is not the best-fit option for the given use-case. Scan and call BatchDeleteItem - Scan is a very slow operation for 10 million items and this is not the best-fit option for the given use-case. Call PurgeTable - This is a made-up option and has been added as a distractor.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company leverages AWS DynamoDB to maintain a database containing information about people's favorite sports teams. This data is accessible and searchable via their homepage. Each day, there is a necessity to delete all 10 million records from the table and subsequently reload them at 2:00 AM.
What is the most cost-effective and efficient method to accomplish this daily deletion and reloading of records?
A
Call PurgeTable
B
Scan and call DeleteItem
C
Scan and call BatchDeleteItem
D
Delete then re-create the table
No comments yet.