SAP-C02 第 107 题
题目
A company has an asynchronous HTTP application that is hosted as an AWS Lambda function. A public Amazon API Gateway endpoint invokes the Lambda function. The Lambda function and the API Gateway endpoint reside in the us-east-1 Region. A solutions architect needs to redesign the application to support failover to another AWS Region. Which solution will meet these requirements?
中文翻译:
一家公司有一个作为 AWS Lambda 函数托管的异步 HTTP 应用程序。公共 Amazon API Gateway 终端节点调用 Lambda 函数。 Lambda 函数和 API Gateway 终端节点位于 us-east-1 区域。解决方案架构师需要重新设计应用程序以支持故障转移到另一个 AWS 区域。哪种解决方案可以满足这些要求?
选项
A. Create an API Gateway endpoint in the us-west-2 Region to direct traffic to the Lambda function in us-east-1. Configure Amazon Route 53 to use a failover routing policy to route traffic for the two API Gateway endpoints.
中文翻译:
在 us-west-2 区域中创建 API 网关终端节点,以将流量引导至 us-east-1 中的 Lambda 函数。配置 Amazon Route 53 以使用故障转移路由策略来路由两个 API Gateway 终端节点的流量。
B. Create an Amazon Simple Queue Service (Amazon SQS) queue. Configure API Gateway to direct traffic to the SQS queue instead of to the Lambda function. Configure the Lambda function to pull messages from the queue for processing.
中文翻译:
创建 Amazon Simple Queue Service (Amazon SQS) 队列。配置 API Gateway 将流量引导至 SQS 队列而不是 Lambda 函数。配置 Lambda 函数以从队列中提取消息进行处理。
C. Deploy the Lambda function to the us-west-2 Region. Create an API Gateway endpoint in us-west-2 10 direct traffic to the Lambda function in us-west-2. Configure AWS Global Accelerator and an Application Load Balancer to manage traffic across the two API Gateway endpoints.
中文翻译:
将 Lambda 函数部署到 us-west-2 区域。在 us-west-2 中创建 API 网关终端节点 10 将流量直接传输到 us-west-2 中的 Lambda 函数。配置 AWS Global Accelerator 和 Application Load Balancer 以管理两个 API Gateway 终端节点之间的流量。
D. Deploy the Lambda function and an API Gateway endpoint to the us-west-2 Region. Configure Amazon Route 53 to use a failover routing policy to route traffic for the two API Gateway endpoints.
中文翻译:
将 Lambda 函数和 API 网关终端节点部署到 us-west-2 区域。配置 Amazon Route 53 以使用故障转移路由策略来路由两个 API Gateway 终端节点的流量。
答案
D
解析
正确答案:D 解析: 本题应选择 D。 正确选项: D. 将 Lambda 函数和 API 网关终端节点部署到 us-west-2 区域。配置 Amazon Route 53 以使用故障转移路由策略来路由两个 API Gateway 终端节点的流量。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规...