Topic 1 Question 148
A developer is trying to get data from an Amazon DynamoDB table called demoman-table. The developer configured the AWS CLI to use a specific IAM user’s credentials and ran the following command:
aws dynamodb get-item --table-name demoman-table --key '{"id": {"N":"1993"}}'
The command returned errors and no rows were returned.
What is the MOST likely cause of these issues?
The command is incorrect; it should be rewritten to use put-item with a string argument.
The developer needs to log a ticket with AWS Support to enable access to the demoman-table.
Amazon DynamoDB cannot be accessed from the AWS CLI and needs to be called via the REST API.
The IAM user needs an associated policy with read access to demoman-table.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: D
The correct answer is (D).
The command is correct and the demoman table exists. The most likely issue is that the IAM user does not have a policy associated with read access to the demoman table.
To resolve the issue, the developer must add a policy to the IAM user that grants read access to the demoman table.
👍 3Digo30sp2023/10/06 - 正解だと思う選択肢: D
D is correct
👍 2Jing20232023/10/11 - 正解だと思う選択肢: D
D is correct
👍 1dilleman2023/10/10
シャッフルモード