SAP-C02 第 380 题
题目
A company has a solution that analyzes weather data from thousands of weather stations. The weather stations send the data over an Amazon API Gateway REST API that has an AWS Lambda function integration. The Lambda function calls a third-party service for data pre-processing. The third-party service gets overloaded and fails the pre-processing, causing a loss of data. A solutions architect must improve the resiliency of the solution. The solutions architect must ensure that no data is lost and that data can be processed later if failures occur. What should the solutions architect do to meet these requirements?
中文翻译:
一家公司有一个解决方案可以分析来自数千个气象站的天气数据。气象站通过集成了 AWS Lambda 函数的 Amazon API Gateway REST API 发送数据。 Lambda函数调用第三方服务进行数据预处理。第三方服务过载,预处理失败,导致数据丢失。解决方案架构师必须提高解决方案的弹性。解决方案架构师必须确保不会丢失任何数据,并且在发生故障时可以稍后处理数据。解决方案架构师应该怎样做才能满足这些要求?
选项
A. Create an Amazon Simple Queue Service (Amazon SQS) queue. Configure the queue as the dead-letter queue for the API.
中文翻译:
创建 Amazon Simple Queue Service (Amazon SQS) 队列。将队列配置为 API 的死信队列。
B. Create two Amazon Simple Queue Service (Amazon SQS) queues: a primary queue and a secondary queue. Configure the secondary queue as the dead-letter queue for the primary queue. Update the API to use a new integration to the primary queue. Configure the Lambda function as the invocation target for the primary queue.
中文翻译:
创建两个 Amazon Simple Queue Service (Amazon SQS) 队列:主队列和辅助队列。将辅助队列配置为主队列的死信队列。更新 API 以使用与主队列的新集成。将 Lambda 函数配置为主队列的调用目标。
C. Create two Amazon EventBridge event buses: a primary event bus and a secondary event bus. Update the API to use a new integration to the primary event bus. Configure an EventBridge rule to react to all events on the primary event bus. Specify the Lambda function as the target of the rule. Configure the secondary event bus as the failure destination for the Lambda function.
中文翻译:
创建两个 Amazon EventBridge 事件总线:主事件总线和辅助事件总线。更新 API 以使用与主事件总线的新集成。配置 EventBridge 规则以对主事件总线上的所有事件做出反应。将 Lambda 函数指定为规则的目标。将辅助事件总线配置为 Lambda 函数的故障目标。
D. Create a custom Amazon EventBridge event bus. Configure the event bus as the failure destination for the Lambda function.
中文翻译:
创建自定义 Amazon EventBridge 事件总线。将事件总线配置为 Lambda 函数的故障目标。
答案
B
解析
正确答案:B 解析: 本题应选择 B。 正确选项: B. 创建两个 Amazon Simple Queue Service (Amazon SQS) 队列:主队列和辅助队列。将辅助队列配置为主队列的死信队列。更新 API 以使用与主队列的新集成。将 Lambda 函数配置为主队列的调用目标。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠...