Answer: C
DynamoDB does not have an equivalent command to the SQL TRUNCATE command. The only way to delete all data in a DynamoDB table is to perform a table scan to fetch all the item keys. Then you must iterate through the keys and delete each item using the delete-item command. Therefore, Option C is CORRECT, and other options are incorrect.
Instead of using the delete-item command, it is possible to delete multiple items using the batch-write-item command.
One must be careful with using this approach as scan operation, and batch-write-item operations consume read and write capacity units. If there are no requirements to keep the table, a faster and more cost-effective approach would be to delete and recreate the entire DynamoDB table.
Reference:
https://medium.com/@samnco/deleting-content-in-dynamodb-from-the-cli-831ce5ab083c