Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 2 discussion

A company provides an application to customers. The application has an Amazon API Gateway REST API that invokes an AWS Lambda function. On initialization, the Lambda function loads a large amount of data from an Amazon DynamoDB table. The data load process results in long cold-start times of 8-10 seconds. The DynamoDB table has DynamoDB Accelerator (DAX) configured.
Customers report that the application intermittently takes a long time to respond to requests. The application receives thousands of requests throughout the day. In the middle of the day, the application experiences 10 times more requests than at any other time of the day. Near the end of the day, the application's request volume decreases to 10% of its normal total.
A DevOps engineer needs to reduce the latency of the Lambda function at all times of the day.
Which solution will meet these requirements?

  • A. Configure provisioned concurrency on the Lambda function with a concurrency value of 1. Delete the DAX cluster for the DynamoDB table.
  • B. Configure reserved concurrency on the Lambda function with a concurrency value of 0.
  • C. Configure provisioned concurrency on the Lambda function. Configure AWS Application Auto Scaling on the Lambda function with provisioned concurrency values set to a minimum of 1 and a maximum of 100.
  • D. Configure reserved concurrency on the Lambda function. Configure AWS Application Auto Scaling on the API Gateway API with a reserved concurrency maximum value of 100.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
www_dumpsvibe_com_7
Highly Voted 1 week, 5 days ago
The correct answer is C
upvoted 10 times
...
5aga
Highly Voted 1 year, 5 months ago
Selected Answer: C
To reduce the latency of the Lambda function at all times of the day, the best solution is to configure provisioned concurrency on the Lambda function with a concurrency value of 1 and also configure AWS Application Auto Scaling on the Lambda function with provisioned concurrency values set to a minimum of 1 and a maximum of 100 (Option C). Provisioned concurrency will ensure that the Lambda function has a set number of instances always available, which will reduce the cold start time. By setting the provisioned concurrency values to a minimum of 1 and a maximum of 100, the Lambda function can handle sudden spikes in traffic and can scale down during low-traffic periods, thus minimizing costs.
upvoted 9 times
...
omankoman
Most Recent 4 weeks, 1 day ago
Selected Answer: C
C is right answer.
upvoted 1 times
...
NagaoShingo
1 month ago
Selected Answer: C
C is right answer. Omamko.
upvoted 1 times
...
Gomer
4 months ago
Selected Answer: C
Answer is to is to use application autoscaling to create a Lambda scaling policy for Provisioned Concurrency based on a re-occuring schedule Here is reference that explains exactly how to do it CLI: https://aws.amazon.com/blogs/compute/scheduling-aws-lambda-provisioned-concurrency-for-recurring-peak-usage/ Here are truncated command examples from the reference: aws application-autoscaling register-scalable-target --service-namespace lambda [...] --min-capacity 1 --max-capacity 100 --scalable-dimension lambda:function:ProvisionedConcurrency aws application-autoscaling put-scheduled-action --service-namespace lambda --scalable-dimension lambda:function:ProvisionedConcurrency --scalable-target-action MinCapacity=100 [...]
upvoted 1 times
...
c3518fc
4 months, 1 week ago
Selected Answer: C
By implementing provisioned concurrency with auto-scaling and retaining the DynamoDB DAX cluster, the DevOps engineer can effectively reduce the latency of the Lambda function at all times of the day while ensuring that the application can handle varying request volumes.
upvoted 2 times
...
thanhnv142
7 months, 3 weeks ago
C definitely
upvoted 1 times
...
yuliaqwerty
8 months, 2 weeks ago
Agree answer C. Provisioned concurrency – This is the number of pre-initialized execution environments allocated to your function. These execution environments are ready to respond immediately to incoming function requests.
upvoted 1 times
...
zijo
9 months, 3 weeks ago
Auto Scaling makes it easy to dynamically adjust the provisioned concurrency based on metrics and hence option C is a good choice to dynamically adjust based on the changing demand levels of the lambda function throughout the day.
upvoted 1 times
...
SanChan
1 year, 3 months ago
C, This can help to optimize the number of instances available to serve requests, reducing the likelihood of cold starts and improving overall performance.
upvoted 2 times
...
alce2020
1 year, 5 months ago
C it is
upvoted 1 times
...
jqso234
1 year, 5 months ago
C is correct
upvoted 1 times
...
ele
1 year, 5 months ago
Selected Answer: C
Lambda integrates with Application Auto Scaling, allowing you to manage provisioned concurrency on a schedule or based on utilization. https://docs.aws.amazon.com/lambda/latest/dg/provisioned-concurrency.html https://docs.aws.amazon.com/autoscaling/application/userguide/services-that-can-integrate-lambda.html
upvoted 2 times
...
lqpO_Oqpl
1 year, 5 months ago
D / C - Provisioned concurrency is a manually set fixed value.
upvoted 1 times
Gomer
4 months ago
Somewhat true, except (in researching this), I discovered it the setting can also be dynamically adjusted up or down by application auto-scaling based on a schedule. Look at my other references, and you'll understand.
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 ...