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.
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.
D) Add a ConditionExpression parameter in the PutItem request.
Correct Answer:
Verified
Q111: A company is looking to move an
Q112: A company is using Amazon with Aurora
Q113: A company is planning to close for
Q114: An online gaming company is planning to
Q115: A company wants to migrate its on-premises
Q117: A database specialist was alerted that a
Q118: A company is load testing its three-tier
Q119: A retail company manages a web application
Q120: A database specialist deployed an Amazon RDS
Q121: A company uses an Amazon RDS for
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents