exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 529 discussion

A company would like to implement a serverless application by using Amazon API Gateway, AWS Lambda, and Amazon DynamoDB. They deployed a proof of concept and stated that the average response time is greater than what their upstream services can accept. Amazon CloudWatch metrics did not indicate any issues with DynamoDB but showed that some Lambda functions were hitting their timeout.
Which of the following actions should the Solutions Architect consider to improve performance? (Choose two.)

  • A. Configure the AWS Lambda function to reuse containers to avoid unnecessary startup time.
  • B. Increase the amount of memory and adjust the timeout on the Lambda function. Complete performance testing to identify the ideal memory and timeout configuration for the Lambda function.
  • C. Create an Amazon ElastiCache cluster running Memcached, and configure the Lambda function for VPC integration with access to the Amazon ElastiCache cluster.
  • D. Enable API cache on the appropriate stage in Amazon API Gateway, and override the TTL for individual methods that require a lower TTL than the entire stage.
  • E. Increase the amount of CPU, and adjust the timeout on the Lambda function. Complete performance testing to identify the ideal CPU and timeout configuration for the Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️
Reference:
https://lumigo.io/blog/aws-lambda-timeout-best-practices/

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
donathon
Highly Voted 3 years, 8 months ago
BD https://lumigo.io/blog/aws-lambda-timeout-best-practices/ A: While this will improve the situation, it may not be enough. B: Memory – The amount of memory available to the function during execution. Choose an amount between 128 MB and 3,008 MB in 64 MB increments. Lambda allocates CPU power linearly in proportion to the amount of memory configured. At 1,792 MB, a function has the equivalent of 1 full vCPU (one vCPU-second of credits per second). All calls made to AWS Lambda must complete execution within 900 seconds. The default timeout is 3 seconds, but you can set the timeout to any value between 1 and 900 seconds. C: The problem is not with the DB. D: AWS API Gateway has a max timeout of 29 seconds for all integration types, which includes Lambda as well. It means that any API call coming through API Gateway cannot exceed 29 seconds. It makes sense for most of the APIs except for few high computational ones. E: Increase the memory not CPU.
upvoted 32 times
...
aandc
Most Recent 2 years, 11 months ago
Selected Answer: BD
You cannot config container being reused or not
upvoted 2 times
...
cannottellname
3 years, 3 months ago
A. https://aws.amazon.com/blogs/compute/container-reuse-in-lambda/ (Remember, you can’t depend on a container being reused, since it’s Lambda’s prerogative to create a new one instead.) B. Increase Memory is good option. (https://lumigo.io/learn/aws-lambda-timeout-best-practices/) C. No DynamoDB D. Sounds good to have less load on Lambda. Caching always gives things faster and better, lesser computation for Lambda. (https://lumigo.io/learn/aws-lambda-timeout-best-practices/) E. Not possible. Increase Memory to Increase CPU.
upvoted 2 times
...
tkanmani76
3 years, 4 months ago
A and B are right - as they help optimize and improve Lambda performance.
upvoted 1 times
tkanmani76
3 years, 3 months ago
Changing to B and D.
upvoted 1 times
...
...
AzureDP900
3 years, 5 months ago
Before even looking answers I decided to go with B,D . It is most appropriate.
upvoted 1 times
...
nsei
3 years, 6 months ago
B & D are the answers
upvoted 1 times
...
wakame
3 years, 6 months ago
A B is correct!
upvoted 1 times
...
kyoneyam
3 years, 6 months ago
https://lumigo.io/blog/aws-lambda-timeout-best-practices/ A: While this will improve the situation, it may not be enough. B: Memory – The amount of memory available to the function during execution. Choose an amount between 128 MB and 3,008 MB in 64 MB increments. Lambda allocates CPU power linearly in proportion to the amount of memory configured. At 1,792 MB, a function has the equivalent of 1 full vCPU (one vCPU-second of credits per second). All calls made to AWS
upvoted 1 times
...
WhyIronMan
3 years, 6 months ago
I'll go with B,D
upvoted 1 times
...
Waiweng
3 years, 6 months ago
it's B,D
upvoted 1 times
...
SD13
3 years, 6 months ago
A B looks correct. This question is asking to reduce execution time. D will only help if caching is applicable, not always.
upvoted 1 times
wakame
3 years, 6 months ago
Agree with you ! API Cache is a feature that improves request latency. But, If there is no cache, call Lambda. Even if API Cache reduces calls to your Lambda, it often doesn't reduce the processing time of Lambda function. On the other hand, A is correct. It is also mentioned in best practices. https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html
upvoted 1 times
...
...
Kian1
3 years, 7 months ago
will go with BD
upvoted 1 times
...
ujizane
3 years, 7 months ago
B and D is correct
upvoted 1 times
...
ujizane
3 years, 7 months ago
B is correct
upvoted 1 times
...
Ebi
3 years, 7 months ago
I go with BD
upvoted 1 times
...
Bulti
3 years, 7 months ago
Answer is B and D. A- incorrect because there is no configuration in Lambda to reuse the same sandbox/contain B- is correct because when memory size increases, the total time decreases. It means AWS keeps its promise and gives proportional CPU to your function. C:- there is no need to use ElasticCache as the problem is not related to caching data from DB. D- This makes sense as it will increase performance and put less load on Lambda function. E- You need to increase memory and not CPU.
upvoted 3 times
...
petebear55
3 years, 7 months ago
B AND D ... BUT ANOTHER EXAMPLE OF SHI** AMAZON TYPE QUESTION PERSECUTING US !!! .. A WOULD BE CORRECT https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html BUT IT MENTIONS containers NOT WHAT IS SPECIFIED IN THE LINK ... SO A AND D FOR ME
upvoted 2 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 ...