exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

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

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 234 discussion

A developer is troubleshooting an application in an integration environment. In the application, an Amazon Simple Queue Service (Amazon SQS) queue consumes messages and then an AWS Lambda function processes the messages. The Lambda function transforms the messages and makes an API call to a third-party service.

There has been an increase in application usage. The third-party API frequently returns an HTTP 429 Too Many Requests error message. The error message prevents a significant number of messages from being processed successfully.

How can the developer resolve this issue?

  • A. Increase the SQS event source’s batch size setting.
  • B. Configure provisioned concurrency for the Lambda function based on the third-party API’s documented rate limits.
  • C. Increase the retry attempts and maximum event age in the Lambda function’s asynchronous configuration.
  • D. Configure maximum concurrency on the SQS event source based on the third-party service’s documented rate limits.
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
nickolaj
Highly Voted 1 year, 5 months ago
Selected Answer: D
https://aws.amazon.com/about-aws/whats-new/2023/01/aws-lambda-maximum-concurrency-amazon-sqs-event-source/
upvoted 14 times
...
Pangian
Most Recent 11 months ago
Selected Answer: D
At first i also thought of B, but D is more ideal for this scenario. "Restricting" the lambda executions will boost the SQS queue size, its better to put the "restriction" to the SQS itself
upvoted 2 times
...
ProfessorZ
11 months, 2 weeks ago
Selected Answer: B
It has to be Option B because that is the only correct answer in Q311. Here is the correct answer for Q311, there is no option there for SQS concurrency: B. Configure the REST API in API Gateway to write the requests directly into an Amazon Simple Queue Service (Amazon SQS) queue. **Configure the Lambda function with a reserved concurrency equal to the third-party stock application's threshold.** Set Lambda function to process the messages from the SQS queue.
upvoted 2 times
...
65703c1
11 months, 4 weeks ago
Selected Answer: D
D is the correct answer.
upvoted 1 times
...
DeaconStJohn
1 year, 1 month ago
Selected Answer: D
this should bring the API in sync with the 3rd part service.
upvoted 1 times
...
yingying920928
1 year, 2 months ago
Selected Answer: B
Configuring maximum concurrency on the SQS event source does not directly address the issue of the Lamba function making excessive requests to the third-party service (while it may help indirectly). While Option B: configuring provisioned concurrency for the Lambda function, directly addresses the issue by ensuring that the function scales in a controlled manner based on the third-party API’s documented rate limits.
upvoted 1 times
...
SerialiDr
1 year, 3 months ago
Selected Answer: D
By setting the maximum concurrency on the SQS event source, the developer can control the number of Lambda functions executing concurrently. This approach ensures that the rate of API calls does not exceed the rate limits set by the third-party service, thereby reducing the likelihood of encountering the HTTP 429 error. Adjusting the concurrency settings allows for better control of the throughput to match the API’s capacity.
upvoted 3 times
...
Snape
1 year, 4 months ago
Selected Answer: B
The developer can configure provisioned concurrency for the Lambda function based on the third-party API's documented rate limits. This can help to ensure that the function has sufficient concurrency to handle the incoming messages and make API calls without exceeding the rate limits of the third-party service
upvoted 2 times
...
AMEJack
1 year, 6 months ago
Selected Answer: C
Provisioned concurrency will not solve the problem as the number of instances can increase till it reaches the max number of unreserved limit (this is not reserved concurrency).
upvoted 1 times
...
PrakashM14
1 year, 6 months ago
Selected Answer: B
Option B addresses the issue by configuring provisioned concurrency for the Lambda function. Provisioned concurrency ensures that a specified number of concurrent executions of the Lambda function are always available. This can help in managing the third-party API rate limits by controlling the number of simultaneous requests made to the API. By setting the provisioned concurrency to a value that aligns with the third-party API's rate limits, you can avoid exceeding those limits and reduce the occurrence of HTTP 429 errors.
upvoted 3 times
...
Jing2023
1 year, 6 months ago
Selected Answer: C
A. increase the batch size does not change how many items being processed. C is from Configuring error handling for asynchronous invocation — You can set it up when creating the lambda. Maximum age of event — The maximum amount of time Lambda retains an event in the asynchronous event queue, up to 6 hours. Retry attempts — The number of times Lambda retries when the function returns an error, between 0 and 2.
upvoted 1 times
...
Claire_KMT
1 year, 6 months ago
B. Configure provisioned concurrency for the Lambda function based on the third-party API’s documented rate limits.
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