AWS Certified Developer Associate DVA-C01 – Question161

A nightly batch job loads 1 million new records into a DynamoDB table. The records are only needed for one hour, and the table needs to be empty by the next night’s batch job.
Which is the MOST efficient and cost-effective method to provide an empty table?

A.
Use DeleteItem using a ConditionExpression.
B. Use BatchWriteItemto empty all of the rows.
C. Write a recursive function that scans and calls out DeleteItem.
D. Create and then delete the table after the task has completed.

Correct Answer: A