Q77 — AWS DVA-C02 Ch.3

Question 77 of 100 | ← Chapter 3

A company operates a website that displays a daily news bulletin. When users visit the site, an AWS Lambda function processes the request, queries the company’s on-premises database to retrieve the current bulletin, and stores the bulletin in plain text. The Lambda function uses the Amazon Translate TranslateText API operation to translate the bulletin and displays the translated result to users. Due to increased traffic, the website’s response time has slowed and the database is overloaded. The company cannot modify the database and requires a solution to improve the Lambda function’s response time. Which solution meets these requirements?

Correct Answer: B. Cache translated news bulletins in the Lambda /tmp directory.

Explanation

Option B is correct because caching translated bulletins in the Lambda /tmp directory significantly reduces redundant calls to both the database and Amazon Translate for repeated requests. Subsequent identical requests can serve cached translations directly, improving latency and reducing database load. Options A, C, and D do not address the root cause: repeated translation and database queries for identical content. Amazon Translate does not offer built-in API-level caching; parallel processing would increase, not decrease, database load; and asynchronous invocation introduces latency without solving the underlying inefficiency. 【Provided by Lantern Certification: swufelp1999】