Q46 — AWS SAA-C03 Ch.2

Question 46 of 65 | ← Chapter 2

Q111. A company has a dataingestion workflow thatincludes the following components:-- An Amazon Simple Notification Service (Amazon SNS) topic that receives notifications about new data deliveries.-- An AWS Lambda function that processes and stores the data. The ingestion workflow occasionally fails because of network connectivity issues. When failure occurs, the corresponding data is not ingested unless the company manually reruns the job What should a solutions architect do to ensure that all notifications are eventually processed?

Correct Answer: D. Configure an Amazon Simple Queue Service (Amazon SQS) queue as the on-failure destination. Modify the Lambda function to process messages in the queue

Explanation

To ensure that all notifications are ultimately processed, the solution architect can configure the Amazon SQS queue as the failure target of the Lambda function. In this way, when the execution of the Lambda function fails, a retried notification is sent to the SQS queue. These notifications of failure can then be polled or triggered in another Lambda function to ensure that the data can be passed successfully. Therefore, in this case, answers A and B do not relate to how to handle notifications of failures. Answer C While you can increase the number of retries, there is no guarantee that all notifications will be successfully processed. Therefore, the best answer is D.