デベロッパー アソシエイト問題演習
丁寧な解説とともに、自分のペースで挑戦できます。間違えた問題は自動で復習リストに追加されます。
A developer has an application container, an AWS Lambda function, and an Amazon Simple Queue Service (Amazon SQS) queue. The Lambda function uses the SQS queue as an event source. The Lambda function makes a call to a third-party machine learning API when the function is invoked. The response from the third-party API can take up to 60 seconds to return.The Lambda function's timeout value is currently 65 seconds. The developer has noticed that the Lambda function sometimes processes duplicate messages from the SQS queue.What should the developer do to ensure that the Lambda function does not process duplicate messages? 開発者は、アプリケーションコンテナ、AWS Lambda 関数、および Amazon Simple Queue Service (Amazon SQS) キューを持っています。 Lambda 関数は、SQS キューをイベント ソースとして使用します。 Lambda 関数は、関数が呼び出されるときにサードパーティの機械学習 API を呼び出します。サードパーティ API からの応答が返されるまでに最大 60 秒かかる場合があります。Lambda 関数のタイムアウト値は現在 65 秒です。開発者は、Lambda 関数が SQS キューからの重複メッセージを処理する場合があることに気づきました。Lambda 関数が重複メッセージを処理しないようにするには、開発者は何をすべきですか?
次のうち、正しいものを1つ選んでください。
