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
Question
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
Solution
Here are some suggestions for cost-effective scaling:
-
Set Lambda Provisioned Concurrency: AWS Lambda's provisioned concurrency feature allows you to set the number of function instances that are always ready to respond to invocations. This can help manage costs by ensuring you're only paying for the compute resources you need.
-
Enable API Gateway Caching: This feature can reduce the number of calls made to your backend services and improve the latency of requests to your API. By caching responses, you can save on costs associated with processing the same request multiple times.
-
Scale Amazon RDS During Peak Periods: Amazon RDS allows you to manually or automatically scale your database instances based on demand. By scaling up during periods of high demand, you can ensure your application remains responsive while also managing costs.
-
Use API Keys to Rate Limit Requests: API keys allow you to control and track how your API is used. By setting rate limits, you can prevent overuse of your API and manage costs associated with processing a high number of requests.
Remember, the key to cost-effective scaling is to balance performance with cost. Monitor your application's performance and adjust your scaling strategies as needed to ensure you're getting the most out of your AWS resources.
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
As a Solution Architect working for an online gaming company, you have been informed the player feedback system is slow to respond during peak periods. The feedback is reviewed weekly by the game developers. The current system submits the feedback to an Amazon API Gateway which invokes a Lambda function to first validate and then store the review in a Amazon DynamoDB table. This table has been configured with provisioned capacity.What suggestion would you offer to remove the players wait time?Enable API caching and payload compression in Amazon API GatewayIncrease the Lambda functions memory configuration so that it can process each client request faster.Change Amazon DynamoDB from provisioned capacity to on-demand allowing the table to scale up to handle any increases in demand.Insert an Amazon Simple Queue Service queue between the API Gateway and Lambda function. Use Lambda's native SQS poller to read off the queue. Refactor the Lambda function to handle the new event object.
As a Solutions Architect for an e-commerce company, you are asked to improve the overall performance of an application that is behind Amazon API Gateway. You also need to protect the backend system and the application from traffic spikes.What is the optimal solution that you would recommend?Enable API Gateway to automatically scale and set throttling limitsEnable caching and set throttling limits.Enable caching and scale API gateway services.Enable caching and WAF (Web Application Firewall)
To reduce costs, a company is planning to migrate a NoSQL database to AWS. Which AWS service is fully managed and can automatically scale throughput capacity to meet database workload demands?a.Amazon DynamoDBb.Amazon Redshiftc.Amazon Aurorad.Amazon RDS
A Company is designing a high availability solution for a customer. This customer's requirements are that their application needs to be able to handle an unexpected amount of load and allow site visitors to read data from a DynamoDB table, which contains the results of an online polling system. Given this information, what would be the best and most cost-saving method for architecting and developing this application?Select one:a. Use the JavaScript SDK and build a static HTML page, hosted inside of an Amazon S3bucket; use CloudFront and Route 53 to serve the website, which uses JavaScript client-sidelanguage to communicate with DynamoDBb. Create a CloudFront distribution that serves the HTML web page, but send the visitors to an Auto Scaling ELB application pointing to EC2 instances c. Create a Lambda script, which pulls the most recent DynamoDB polling results and creates a custom HTML page, inside of Amazon S3 and use CloudFront and Route 53 to servethe static websited. Deploy an Auto Scaling application with Elastic Load Balancer pointing to EC2 instances that use a server-side SDK to communicate with the DynamoDB table
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.