exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 44 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 44
Topic #: 1
[All AWS Certified Developer Associate Questions]

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 executed the following command:

The command returned errors and no rows were returned.
What is the MOST likely cause of these issues?

  • A. The command is incorrect; it should be rewritten to use put-item with a string argument.
  • B. The developer needs to log a ticket with AWS Support to enable access to the demoman-table.
  • C. Amazon DynamoDB cannot be accessed from the AWS CLI and needs to be called via the REST API.
  • D. The IAM user needs an associated policy with read access to demoman-table.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
faramawi
Highly Voted 3 years, 7 months ago
I'd go with D It has right syntax. it just need the read access permission. References: * https://docs.aws.amazon.com/cli/latest/reference/dynamodb/get-item.html * https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazondynamodb.html
upvoted 21 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: D
D) Correct - When using AWS CLI to interact with DynamoDB (or any AWS service), the IAM user's permissions are determined by the IAM policies associated with that user. If the user doesn't have the necessary permissions to perform actions like GetItem, Query, or Scan on the demoman-table, they will receive errors or no data in response.
upvoted 1 times
...
AsmaZoheb
1 year, 3 months ago
Selected Answer: D
yes answer is D
upvoted 1 times
...
tuongthuy
1 year, 9 months ago
Selected Answer: D
Correct answer is D
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: D
it is easy to see, by exclusion, the the correct one is D: A. Nope - we need to read not to write the item B. Nope - access to tables are managed by DBA accounts not by support C. Nope - DynamoDB can be accessed from the AWS CLI D. Yep - The IAM user needs an associated policy with read access to demoman-table.
upvoted 2 times
...
netk
3 years, 2 months ago
Selected Answer: D
Answer: D
upvoted 1 times
...
JP_PA
3 years, 2 months ago
Selected Answer: D
ANS: D
upvoted 1 times
...
denccc
3 years, 5 months ago
it's D
upvoted 2 times
...
Juanlufr
3 years, 5 months ago
Answer D
upvoted 2 times
...
VAG1595
3 years, 5 months ago
Answer: D
upvoted 2 times
...
TroyMcLure
3 years, 6 months ago
Correct Answer: "D" That's a likely cause when the user executing the CLI command has no read access granted.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago