nerdexam
Amazon

DBS-C01 · Question #144

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…

The correct answer is C. Change the application to call DescribeTable periodically until the TableStatus is ACTIVE, then. ResourceNotFoundException The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be ACTIVE. https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html

Submitted by khalil_dz· Mar 6, 2026Management and Operations

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.

How the community answered

(53 responses)
  • A
    8% (4)
  • B
    4% (2)
  • C
    75% (40)
  • D
    13% (7)

Explanation

ResourceNotFoundException The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be ACTIVE. https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html

Topics

#DynamoDB#CreateTable#ResourceNotFoundException#API idempotency

Community Discussion

No community discussion yet for this question.

Full DBS-C01 Practice