DBS-C01 · Question #144
DBS-C01 Question #144: Real Exam Question with Answer & Explanation
Sign in or unlock DBS-C01 to reveal the answer and full explanation for question #144. The question stem and answer options stay visible for context.
Question
A company is building a software as a service application. As part of the new user sign-on workflow, a Python script invokes the CreateTable operation using the Amazon DynamoDB API. After the call returns, the script attempts to call PutItem. Occasionally, the PutItem request fails with a ResourceNotFoundException error, which causes the workflow to fail. The development team has confirmed that the same table name is used in the two API calls. How should a database specialist fix this issue?
Options
- AAdd an allow statement for the dynamodb:PutItem action in a policy attached to the role used by
- BSet the StreamEnabled property of the StreamSpecification parameter to true, then call PutItem.
- CChange the application to call DescribeTable periodically until the TableStatus is ACTIVE, then
- DAdd a ConditionExpression parameter in the PutItem request.
Unlock DBS-C01 to see the answer
You've previewed enough free DBS-C01 questions. Unlock DBS-C01 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.