ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 134 - DBS-C01 discussion

Report
Export

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?

A.
Add an allow statement for the dynamodb:PutItem action in a policy attached to the role used by the application creating the table.
Answers
A.
Add an allow statement for the dynamodb:PutItem action in a policy attached to the role used by the application creating the table.
B.
Set the StreamEnabled property of the StreamSpecification parameter to true, then call PutItem.
Answers
B.
Set the StreamEnabled property of the StreamSpecification parameter to true, then call PutItem.
C.
Change the application to call DescribeTable periodically until the TableStatus is ACTIVE, then call PutItem.
Answers
C.
Change the application to call DescribeTable periodically until the TableStatus is ACTIVE, then call PutItem.
D.
Add a ConditionExpression parameter in the PutItem request.
Answers
D.
Add a ConditionExpression parameter in the PutItem request.
Suggested answer: C

Explanation:


https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeTable.html

asked 16/09/2024
sheldan simeina
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first