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
Question
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
Solution 1
The company should consider the following steps to ensure their serverless infrastructure scales to their needs:
-
Throttle Lambda functions by configuring reserved concurrency: This allows you to limit the number of concurrent executions for a particular Lambda function. Any excess traffic beyond the set limit can be sent to Dead Letter Queues (DLQ) which can be handled when the request volume reduces.
-
Review service limits for Amazon API Gateway and Lambda functions: It's important to understand the service limits of these AWS services to identify potential bottlenecks. This will help balance performance requirements, costs, and business impact.
-
Enable Auto Scaling Groups for AWS Lambda: While AWS Lambda does automatically scale, enabling Auto Scaling Groups can provide additional assurance that enough Lambda functions are ready to handle incoming requests.
-
Understand the capabilities of managed services: Both API Gateway and AWS Lambda are managed services that have built-in horizontal scaling, security, and high availability. They are designed to handle an unlimited amount of requests. However, it's still important to monitor and adjust settings as needed to ensure optimal performance.
Solution 2
The company should consider the following steps to ensure their serverless infrastructure scales to their needs:
-
Throttle Lambda functions by configuring reserved concurrency: This allows you to limit the number of concurrent executions for a specific Lambda function. Any excess traffic can be sent to Dead Letter Queues (DLQ) that will be handled when the request volume reduces. This helps to manage the load on your Lambda functions and prevent them from being overwhelmed by a sudden surge in traffic.
-
Review service limits for Amazon API Gateway and Lambda functions: Each AWS service has certain limits, and it's important to understand these limits to identify potential bottlenecks. Balancing performance requirements, costs, and business impact is crucial in this step.
-
Enable Auto Scaling Groups for AWS Lambda: While AWS Lambda does automatically scale based on the number of incoming requests, enabling Auto Scaling Groups can provide additional control and flexibility. This ensures that enough Lambda functions are ready to handle the incoming requests.
-
Understand the nature of managed services: API Gateway and AWS Lambda are managed services that have built-in horizontal scaling, security, and high availability. They are designed to handle an unlimited amount of requests. However, it's still important to monitor and manage these services to ensure they are meeting your specific needs.
Similar Questions
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
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.
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
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
A company wants to build a scalable, serverless architecture to process streaming data in real-time. They are looking for a service that can load data streams continuously with the ability to process data concurrently across multiple Lambda functions. Which AWS service would you recommend for this requirement?Question 32Answera.Amazon Redshiftb.Amazon Kinesisc.Amazon SQSd.AWS Glue
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.