SAP-C02 学习助手

SAP-C02 第 180 题

API Gateway Lambda CloudFront EC2 Kinesis SQS ECS Fargate Auto Scaling

题目

A company runs a processing engine in the AWS Cloud. The engine processes environmental data from logistics centers to calculate a sustainability index. The company has millions of devices in logistics centers that are spread across Europe. The devices send information to the processing engine through a RESTful API. The API experiences unpredictable bursts of traffic. The company must implement a solution to process all data that the devices send to the processing engine. Data loss is unacceptable. Which solution will meet these requirements?

中文翻译:
一家公司在 AWS 云中运行处理引擎。该引擎处理来自物流中心的环境数据以计算可持续性指数。该公司在遍布欧洲的物流中心拥有数百万台设备。设备通过 RESTful API 将信息发送到处理引擎。 API 会经历不可预测的流量突发。公司必须实施一个解决方案来处理设备发送到处理引擎的所有数据。数据丢失是不可接受的。哪种解决方案可以满足这些要求?

选项

A. Create an Application Load Balancer (ALB) for the RESTful API. Create an Amazon Simple Queue Service (Amazon SQS) queue. Create a listener and a target group for the ALB Add the SQS queue as the target. Use a container that runs in Amazon Elastic Container Service (Amazon ECS) with the Fargate launch type to process messages in the queue.

中文翻译:
为 RESTful API 创建应用程序负载均衡器 (ALB)。创建 Amazon Simple Queue Service (Amazon SQS) 队列。为 ALB 创建侦听器和目标组 将 SQS 队列添加为目标。使用在 Amazon Elastic Container Service (Amazon ECS) 中运行且具有 Fargate 启动类型的容器来处理队列中的消息。

B. Create an Amazon API Gateway HTTP API that implements the RESTful API. Create an Amazon Simple Queue Service (Amazon SQS) queue. Create an API Gateway service integration with the SQS queue. Create an AWS Lambda function to process messages in the SQS queue.

中文翻译:
创建实现 RESTful API 的 Amazon API Gateway HTTP API。创建 Amazon Simple Queue Service (Amazon SQS) 队列。创建与 SQS 队列的 API 网关服务集成。创建 AWS Lambda 函数来处理 SQS 队列中的消息。

C. Create an Amazon API Gateway REST API that implements the RESTful API. Create a fleet of Amazon EC2 instances in an Auto Scaling group. Create an API Gateway Auto Scaling group proxy integration. Use the EC2 instances to process incoming data.

中文翻译:
创建实现 RESTful API 的 Amazon API Gateway REST API。在 Auto Scaling 组中创建 Amazon EC2 实例队列。创建 API Gateway Auto Scaling 组代理集成。使用 EC2 实例处理传入数据。

D. Create an Amazon CloudFront distribution for the RESTful API. Create a data stream in Amazon Kinesis Data Streams. Set the data stream as the origin for the distribution. Create an AWS Lambda function to consume and process data in the data stream.

中文翻译:
为 RESTful API 创建 Amazon CloudFront 分配。在 Amazon Kinesis Data Streams 中创建数据流。将数据流设置为分发的来源。创建 AWS Lambda 函数来使用和处理数据流中的数据。

答案

B

解析

正确答案:B 解析: 本题应选择 B。 正确选项: B. 创建实现 RESTful API 的 Amazon API Gateway HTTP API。创建 Amazon Simple Queue Service (Amazon SQS) 队列。创建与 SQS 队列的 API 网关服务集成。创建 AWS Lambda 函数来处理 SQS 队列中的消息。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时...

登录后查看完整解析