Medium1 markMultiple Choice
Domain 4.2: Compute Cost OptimizationCost OptimizationLambdaServerless

AWS SAA-C03 · Question 49 · Domain 4.2: Compute Cost Optimization

A company is designing a new application that will use AWS Lambda. The functions will be invoked millions of times per day. The solutions architect wants to optimize the cost of running these Lambda functions. <br/><br/>What is the MOST effective way to reduce Lambda costs?

Answer options:

A.

Purchase Reserved Instances for AWS Lambda.

B.

Optimize the function code to execute faster and reduce the allocated memory if it is over-provisioned.

C.

Deploy the Lambda functions in a private VPC subnet.

D.

Increase the timeout setting of the Lambda functions.

How to approach this question

Understand how Lambda is billed: Requests + (Duration * Memory).

Full Answer

B.Optimize the function code to execute faster and reduce the allocated memory if it is over-provisioned.✓ Correct
Optimize the function code to execute faster and reduce the allocated memory if it is over-provisioned.
AWS Lambda is priced based on the number of requests and the compute time consumed. Compute time is calculated by multiplying the execution duration by the amount of memory allocated. Optimizing code to run faster and right-sizing memory are the primary ways to reduce costs.

Common mistakes

Thinking Reserved Instances apply to Lambda.

Practice the full AWS SAA-C03 Practice Exam 4

65 questions · hints · full answers · grading

More questions from this exam