DVA-C02 · Question #163
DVA-C02 Question #163: Real Exam Question with Answer & Explanation
The correct answer is D: The IAM user needs an associated policy with read access to demoman-table.. 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 ta
Question
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?
Options
- AThe command is incorrect; it should be rewritten to use put-item with a string argument.
- BThe developer needs to log a ticket with AWS Support to enable access to the demoman-table.
- CAmazon DynamoDB cannot be accessed from the AWS CLI and needs to be called via the REST
- DThe IAM user needs an associated policy with read access to demoman-table.
Explanation
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.
Community Discussion
No community discussion yet for this question.