Topic 1 Question 378
A company has a website that displays a daily newsletter. When a user visits the website, an AWS Lambda function processes the browser's request and queries the company's on-premises database to obtain the current newsletter. The newsletters are stored in English. The Lambda function uses the Amazon Translate TranslateText API operation to translate the newsletters, and the translation is displayed to the user.
Due to an increase in popularity, the website's response time has slowed. The database is overloaded. The company cannot change the database and needs a solution that improves the response time of the Lambda function.
Which solution meets these requirements?
Change to asynchronous Lambda function invocation.
Cache the translated newsletters in the Lambda/tmp directory.
Enable TranslateText API caching.
Change the Lambda function to use parallel processing.
ユーザの投票
コメント(4)
- 正解だと思う選択肢: B
B is correct. Caching the translated newsletters in the Lambda /tmp directory would significantly improve response times and reduce the load on the database. C is Wrong as Amazon Translate doesn't offer an API-level caching feature.
👍 3KennethNg9232024/08/21 - 正解だと思う選択肢: B
B is correct. Why? All others make no sense. But using /tmp to cache this content is far from being optimal. AWS itself proposes using S3 or dynamo for caching of this kind: https://aws.amazon.com/pt/blogs/machine-learning/maximize-your-amazon-translate-architecture-using-strategic-caching-layers/ https://aws.amazon.com/pt/blogs/machine-learning/translating-your-website-or-application-automatically-with-amazon-translate-in-your-ci-cd-pipeline/
Using lambda's /tmp will solve the DB overload but create problems of performance by its own, AND probably increase costs.
👍 2wh1t4k3r2024/09/02 B. Cache the translated newsletters in the Lambda/tmp directory.
👍 1komorebi2024/07/12
シャッフルモード