ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 94 - DOP-C02 discussion

Report
Export

A DevOps engineer is designing an application that integrates with a legacy REST API. The application has an AWS Lambda function that reads records from an Amazon Kinesis data stream. The Lambda function sends the records to the legacy REST API.

Approximately 10% of the records that the Lambda function sends from the Kinesis data stream have data errors and must be processed manually. The Lambda function event source configuration has an Amazon Simple Queue Service (Amazon SQS) dead-letter queue as an on-failure destination. The DevOps engineer has configured the Lambda function to process records in batches and has implemented retries in case of failure.

During testing the DevOps engineer notices that the dead-letter queue contains many records that have no data errors and that already have been processed by the legacy REST API. The DevOps engineer needs to configure the Lambda function's event source options to reduce the number of errorless records that are sent to the dead-letter queue.

Which solution will meet these requirements?

A.
Increase the retry attempts
Answers
A.
Increase the retry attempts
B.
Configure the setting to split the batch when an error occurs
Answers
B.
Configure the setting to split the batch when an error occurs
C.
Increase the concurrent batches per shard
Answers
C.
Increase the concurrent batches per shard
D.
Decrease the maximum age of record
Answers
D.
Decrease the maximum age of record
Suggested answer: B

Explanation:

This solution will meet the requirements because it will reduce the number of errorless records that are sent to the dead-letter queue. When you configure the setting to split the batch when an error occurs, Lambda will retry only the records that caused the error, instead of retrying the entire batch. This way, the records that have no data errors and have already been processed by the legacy REST API will not be retried and sent to the dead-letter queue unnecessarily.

https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html

asked 16/09/2024
Krzysztof Dyrdal
48 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first