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 25 discussion

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

A company is adding items to an Amazon DynamoDB table from an AWS Lambda function that is written in Python. A developer needs to implement a solution that inserts records in the DynamoDB table and performs automatic retry when the insert fails.
Which solution meets these requirements with MINIMUM code changes?

  • A. Configure the Python code to run the AWS CLI through shell to call the PutItem operation
  • B. Call the PutItem operation from Python by using the DynamoDB HTTP API
  • C. Queue the items in AWS Glue, which will put them into the DynamoDB table
  • D. Use the AWS software development kit (SDK) for Python (boto3) to call the PutItem operation
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
LaXuanLinh
Highly Voted 2 years, 7 months ago
Selected Answer: D
The answer is D The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests using Error retries and exponential backoff. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html
upvoted 6 times
...
Chutyapathy
Most Recent 4 months, 1 week ago
Selected Answer: C
Chuthyas it is C it requires no code changes
upvoted 1 times
...
sumanshu
4 months, 1 week ago
Selected Answer: D
D) Correct Boto3 automatically handles retries for transient failures (e.g., throttling, network errors) by leveraging AWS's built-in retry logic.
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: D
D for sure, we need SDK for python to call put_item API in order to insert or update an item in the DynamoDB table. Please correct me if I'm wrong but the exponential backoff is implemented in the lambda function itself and not in the AWS SDK. I mean, even if we don't use the SDK, if the lambda throttles an error, it will try other 2 times to execute.
upvoted 1 times
...
peterpain
1 year, 11 months ago
Selected Answer: D
boto3 is a SDK used for Python to interact with AWS
upvoted 1 times
...
Krt5894
2 years, 2 months ago
Selected Answer: D
D it is
upvoted 1 times
...
cwit63
2 years, 6 months ago
It is D
upvoted 1 times
...
denbond
2 years, 6 months ago
Selected Answer: D
D since AWS SDKs implements exponential backoff which will retry the requests until they are successful
upvoted 3 times
...
tam2801
2 years, 7 months ago
Voted D
upvoted 1 times
...
sindra
2 years, 7 months ago
Selected Answer: D
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html answer should be D
upvoted 3 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