exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 265 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 265
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company is hosting an Amazon API Gateway REST API that calls a single AWS Lambda function. The function is infrequently invoked by multiple clients at the same time. The code performance is optimal, but the company wants to optimize the startup time of the function.

What can a developer do to optimize the initialization of the function?

  • A. Enable API Gateway caching for the REST API.
  • B. Configure provisioned concurrency for the Lambda function.
  • C. Use Lambda proxy integration for the REST API.
  • D. Configure AWS Global Accelerator for the Lambda function.
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
pancman
Highly Voted 2 years, 4 months ago
Selected Answer: B
If the function is not being invoked frequently, lambda is likely getting rid of the environment after some time. So when a new invocation comes, it is building the environment again - leading to latency. This is common for lambda functions used in non-production settings and it is called a cold start. The way to solve it is provisioned concurrency.
upvoted 5 times
...
rcaliandro
Most Recent 1 year, 11 months ago
Selected Answer: B
Configuring the provisioned concurrency of the lambda we "prepere" the inizialization proccess for following calls. pancman is right this is called cold start. The correct answer is B for sure.
upvoted 1 times
...
rcaliandro
1 year, 11 months ago
Configuring the provisioned concurrency of the lambda we "prepere" the inizialization proccess for following calls. pancman is right this is called cold start. The correct answer is B for sure.
upvoted 1 times
...
DrCloud
2 years, 6 months ago
Selected Answer: B
Reducing cold starts with Provisioned Concurrency If you need predictable function start times for your workload, Provisioned Concurrency is the recommended solution to ensure the lowest possible latency. This feature keeps your functions initialized and warm, ready to respond in double-digit milliseconds at the scale you provision. Unlike on-demand Lambda functions, this means that all setup activities happen ahead of invocation, including running the initialization code. https://aws.amazon.com/blogs/compute/operating-lambda-performance-optimization-part-1/
upvoted 3 times
...
michaldavid
2 years, 6 months ago
Selected Answer: B
Keep your Lambda function warm
upvoted 2 times
...
k1kavi1
2 years, 6 months ago
Selected Answer: B
B. Configure provisioned concurrency for the Lambda function.
upvoted 2 times
...
kapil206001
2 years, 6 months ago
B https://www.simform.com/blog/lambda-cold-starts/
upvoted 1 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 ...