ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 139 - DVA-C02 discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
D.
Configure maximum concurrency on the SQS event source based on the third-party service's documented rate limits.
Suggested answer: D

Explanation:

Maximum concurrency for SQS as an event source allows customers to control the maximum concurrent invokes by the SQS event source1.When multiple SQS event sources are configured to a function, customers can control the maximum concurrent invokes of individual SQS event source1.

In this scenario, the developer needs to resolve the issue of the third-party API frequently returning an HTTP 429 Too Many Requests error message, which prevents a significant number of messages from being processed successfully. To achieve this, the developer can follow these steps:

Find out the documented rate limits of the third-party API, which specify how many requests can be made in a given time period.

Configure maximum concurrency on the SQS event source based on the rate limits of the third-party API. This will limit the number of concurrent invokes by the SQS event source and prevent exceeding the rate limits of the third-party API.

Test and monitor the application performance and adjust the maximum concurrency value as needed.

By using this solution, the developer can reduce the frequency of HTTP 429 errors and improve the message processing success rate. The developer can also avoid throttling or blocking by the third-party API.

asked 16/09/2024
Simon Liu
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first