DVA-C02 · Question #677
DVA-C02 Question #677: Real Exam Question with Answer & Explanation
Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #677. The question stem and answer options stay visible for context.
Question
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 of the 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?
Options
- ACall the GetItem operation first to confirm that the record does not exist. Then call PutItem.
- BEnable the TTL attribute on the DynamoDB table.
- CImplement a conditional put by using the attribute_exists(transactionID) condition expression.
- DImplement a conditional put by using the attribute_not_exists(transactionID) condition expression.
Unlock DVA-C02 to see the answer
You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.