Knowee
Questions
Features
Study Tools

Your company has a serverless application with Amazon API Gateway and AWS Lambda having both read, as well as, write APIs. The developers make frequent changes to the Lambda code and run load tests on the application after every change. The regular load testing has resulted in a spike in the cost.What are the best practices and cost savings options available on their Lambda compute usage? (Select TWO)Changing Lambda code does not necessarily require load testing. Unit and integration tests are sufficient.User reserve concurrency for the lambda functions and set the concurrency to a lower value.Use compute savings plan for lambda (discounted Savings Plans rates of up to 17% for a 1 or 3 year term, up to the commitment level.)Use Amazon EC2 instead of lambda.Use caching on Amazon API Gateway.

Question

Your company has a serverless application with Amazon API Gateway and AWS Lambda having both read, as well as, write APIs. The developers make frequent changes to the Lambda code and run load tests on the application after every change. The regular load testing has resulted in a spike in the cost.What are the best practices and cost savings options available on their Lambda compute usage? (Select TWO)Changing Lambda code does not necessarily require load testing. Unit and integration tests are sufficient.User reserve concurrency for the lambda functions and set the concurrency to a lower value.Use compute savings plan for lambda (discounted Savings Plans rates of up to 17% for a 1 or 3 year term, up to the commitment level.)Use Amazon EC2 instead of lambda.Use caching on Amazon API Gateway.

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

The best practices and cost savings options available on their Lambda compute usage are:

  1. User reserve concurrency for the lambda functions and set the concurrency to a lower value: By reserving concurrency, you can manage your costs by limiting the number of simultaneous executions of your function. This can be particularly useful if your function is triggered by a high-volume event source.

  2. Use compute savings plan for lambda: AWS offers Savings Plans that provide significant savings on AWS compute usage. With Compute Savings Plans, you can save up to 17% on AWS Lambda. You simply commit to a consistent amount of compute usage (e.g. $10/hour) for 1 or 3 years, and in exchange, you will receive a discount on that compute usage.

The other options mentioned are not necessarily best practices or cost-saving measures. Changing Lambda code does often require load testing to ensure the changes haven't negatively impacted performance. Using Amazon EC2 instead of Lambda may not result in cost savings, as EC2 instances are billed by the hour, while Lambda functions are billed by the millisecond. Using caching on Amazon API Gateway can improve performance, but it may not significantly reduce costs.

This problem has been solved

Similar Questions

A company will be modernizing their application which is currently running on Amazon Elastic Cloud Compute (EC2) instances. They have experience with scaling this infrastructure using Amazon EC2 Autoscaling. They want to move to serverless infrastructure consisting of an Amazon API Gateway that triggers Lambda functions. They are consulting you about scaling this new infrastructure.What should the company consider in order to make sure the serverless infrastructure scales to their needs?Throttle Lambda functions by configuring reserved concurrency, sending the excess traffic to Dead Letter Queues (DLQ) that will be handled when the request volume reduces.Look at service limits for Amazon API Gateway and Lambda functions used in order to identify potential bottlenecks and balance performance requirements, costs, and business impactEnable Auto Scaling Groups for AWS Lambda to ensure that enough Lambda functions are ready to handle the incoming requestsDo nothing. API Gateway and AWS Lambda are managed services that have built-in horizontal scaling, security, and high availability to handle unlimited amount of requests

A social media analytics company wants to migrate to a serverless stack on AWS. Which of the following scenarios can be handled by AWS Lambda? (Select two)Question 13AnswerA.Creating Amazon Elastic Compute Cloud (Amazon EC2) instancesB.Generating revenue reports on demandC.Executing extract, transform, and load (ETL) jobsD.Automatically provisioning Amazon WorkSpaces instancesE.Running data analysis across EC2 instances

True or False: AWS Lambda is a compute service that runs code without the need to provision or manage servers. Lambda runs code on a high-availability compute infrastructure. It also performs all the administration of compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, and logging. Lambda can run code for virtually any type of application or backend service.1 pointTrueFalse

You are consulting for a company that promotes large musical events. They are going to announce a concert of a well known artist and expect a 10 fold increase in requests to their service. The service is based on API Gateway triggering a series of Lambda functions and an Amazon Relational Database Service (Amazon RDS) Database for persistent storage.What suggestions would you make for cost effective scaling?Set Lambda provisioned concurrency to a value that meets your cost targetEnable API Gateway caching to reduce backend invocationsScale the Amazon RDS instance up during the peak request periodUse API Keys to rate limit incoming user requests

A company wants to migrate a critical application to AWS. The application has a short runtime. The application is invoked by changes in data or by shifts in system state. The company needs a compute solution that maximizes operational efficiency and minimizes the cost of running the application. Which AWS solution should the company use to meet these requirements?a)Amazon EC2 Reserved Instancesb)Amazon EC2 Spot Instancesc)AWS Lambdad)Amazon EC2 On-Demand Instances

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.