SAP-C02 学习助手

SAP-C02 第 301 题

VPC API Gateway Lambda Config WAF

题目

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?

中文翻译:
一家公司正在构建将在 AWS Lambda 函数上运行的应用程序。数百名客户将使用该应用程序。该公司希望为每个客户提供特定时间段内的请求配额。配额必须符合客户的使用模式。一些客户必须在更短的时间内获得更高的配额。哪种解决方案可以满足这些要求?

选项

A. Create an Amazon API Gateway REST API with a proxy integration to invoke the Lambda function. For each customer, configure an API Gateway usage plan that includes an appropriate request quota. Create an API key from the usage plan for each user that the customer needs.

中文翻译:
创建具有代理集成的 Amazon API Gateway REST API 以调用 Lambda 函数。为每个客户配置一个包含适当请求配额的 API Gateway 使用计划。根据使用计划为客户需要的每个用户创建 API 密钥。

B. Create an Amazon API Gateway HTTP API with a proxy integration to invoke the Lambda function. For each customer configure an API Gateway usage plan that includes an appropriate request quota Configure route-level throttling for each usage plan. Create an API Key from the usage plan for each user that the customer needs.

中文翻译:
创建具有代理集成的 Amazon API Gateway HTTP API 以调用 Lambda 函数。为每个客户配置一个 API Gateway 使用计划,其中包括适当的请求配额 为每个使用计划配置路由级限制。根据使用计划为客户需要的每个用户创建 API 密钥。

C. Create a Lambda function alias for each customer. Include a concurrency limit with an appropriate request quota. Create a Lambda function URL for each function alias. Share the Lambda function URL for each alias with the relevant customer.

中文翻译:
为每个客户创建 Lambda 函数别名。包括具有适当请求配额的并发限制。为每个函数别名创建 Lambda 函数 URL。与相关客户共享每个别名的 Lambda 函数 URL。

D. Create an Application Load Balancer (ALB) in a VPC. Configure the Lambda function as a target for the ALB. Configure an AWS WAF web ACL for the ALB. For each customer configure a rale-based rule that includes an appropriate request quota.

中文翻译:
在 VPC 中创建应用程序负载均衡器 (ALB)。将 Lambda 函数配置为 ALB 的目标。为 ALB 配置 AWS WAF Web ACL。为每个客户配置基于规则的规则,其中包括适当的请求配额。

答案

A

解析

正确答案:A 解析: 本题应选择 A。 正确选项: A. 创建具有代理集成的 Amazon API Gateway REST API 以调用 Lambda 函数。为每个客户配置一个包含适当请求配额的 API Gateway 使用计划。根据使用计划为客户需要的每个用户创建 API 密钥。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可...

登录后查看完整解析