exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 378 discussion

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?

  • A. Change to asynchronous Lambda function invocation.
  • B. Cache the translated newsletters in the Lambda/tmp directory.
  • C. Enable TranslateText API caching.
  • D. Change the Lambda function to use parallel processing.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
CloudChingon
5 months, 3 weeks ago
Selected Answer: B
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? A. Change to asynchronous Lambda function invocation. B. Cache the translated newsletters in the Lambda/tmp directory. C. Enable TranslateText API caching. D. Change the Lambda function to use parallel processing.
upvoted 1 times
...
wh1t4k3r
8 months ago
Selected Answer: 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.
upvoted 2 times
...
KennethNg923
8 months, 2 weeks ago
Selected Answer: 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.
upvoted 3 times
...
komorebi
9 months, 3 weeks ago
B. Cache the translated newsletters in the Lambda/tmp directory.
upvoted 1 times
catoteja
9 months, 2 weeks ago
No. Tmp directory is TEMPORAL and ephemeral
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago