Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Amazon Web Services AWS Certified Developer - Associate DVA-C02 Question # 113 Topic 12 Discussion

Amazon Web Services AWS Certified Developer - Associate DVA-C02 Question # 113 Topic 12 Discussion

DVA-C02 Exam Topic 12 Question 113 Discussion:
Question #: 113
Topic #: 12

An application adds a processing date to each transaction that it receives. The application writes each transaction to an Amazon DynamoDB table by using the PutItem operation. Each transaction has a unique ID (transactionID). Sometimes the application receives transactions more than once. A developer notices that duplicate transactions in DynamoDB have the latest processing date instead of the date when the transaction was first received. Duplicate records happen infrequently, and most transactions are unique. What is the MOST cost-effective solution that the developer can implement to ensure that PutItem does not update an existing record?


A.

Call the GetItem operation first to confirm that the record does not exist. Then call PutItem.


B.

Enable the TTL attribute on the DynamoDB table.


C.

Implement a conditional put by using the attribute_exists(transactionID) condition expression.


D.

Implement a conditional put by using the attribute_not_exists(transactionID) condition expression.


Get Premium DVA-C02 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.