A company is building an application that will run on an AWS Lambda function. Hundreds of customers will use the application. The company wants to give each customer a quota of requests for a specific time period. The quotas must match customer usage patterns. Some customers must receive a higher quota for a shorter time period.
Which solution will meet these requirements?
The correct answer is A.
A . This solution meets the requirements because it allows the company to create different usage plans for each customer, with different request quotas and time periods. The usage plans can be associated with API keys, which can be distributed to the users of each customer. The API Gateway REST API can invoke the Lambda function using a proxy integration, which passes the request data to the function as input and returns the function output as the response.This solution is scalable, secure, and cost-effective12
B . This solution is incorrect because API Gateway HTTP APIs do not support usage plans or API keys.These features are only available for REST APIs3
C . This solution is incorrect because it does not provide a way to enforce request quotas for each customer. Lambda function aliases can be used to create different versions of the function, but they do not have any quota mechanism.Moreover, this solution exposes the Lambda function URLs directly to the customers, which is not secure or recommended4
D . This solution is incorrect because it does not provide a way to differentiate between customers or users. AWS WAF rate-based rules can be used to limit requests based on IP addresses, but they do not support any other criteria such as user agents or headers.Moreover, this solution adds unnecessary complexity and cost by using an ALB and a VPC56
1:Creating and using usage plans with API keys - Amazon API Gateway2:Set up a proxy integration with a Lambda proxy integration - Amazon API Gateway3:Choose between HTTP APIs and REST APIs - Amazon API Gateway4:Using AWS Lambdaaliases - AWS Lambda5:Rate-based rule statement - AWS WAF, AWS Firewall Manager, and AWS Shield Advanced6:Lambda functions as targets for Application Load Balancers - Elastic Load Balancing
Currently there are no comments in this discussion, be the first to comment!