SAP-C02 学习助手

SAP-C02 第 45 题

API Gateway Lambda EC2 Config ECS Fargate Auto Scaling

题目

A company hosts a Git repository in an on-premises data center. The company uses webhooks to invoke functionality that runs in the AWS Cloud. The company hosts the webhook logic on a set of Amazon EC2 instances in an Auto Scaling group that the company set as a target for an Application Load Balancer (ALB). The Git server calls the ALB for the configured webhooks. The company wants to move the solution to a serverless architecture. Which solution will meet these requirements with the LEAST operational overhead?

中文翻译:
一家公司在本地数据中心托管 Git 存储库。该公司使用 Webhook 来调用在 AWS 云中运行的功能。该公司将 Webhook 逻辑托管在 Auto Scaling 组中的一组 Amazon EC2 实例上,该公司将这些实例设置为应用程序负载均衡器 (ALB) 的目标。 Git 服务器为配置的 Webhook 调用 ALB。该公司希望将解决方案迁移到无服务器架构。哪种解决方案能够以最少的运营开销满足这些要求?

选项

A. For each webhook, create and configure an AWS Lambda function URL. Update the Git servers to call the individual Lambda function URLs.

中文翻译:
对于每个 Webhook,创建并配置一个 AWS Lambda 函数 URL。更新 Git 服务器以调用各个 Lambda 函数 URL。

B. Create an Amazon API Gateway HTTP API. Implement each webhook logic in a separate AWS Lambda function. Update the Git servers to call the API Gateway endpoint.

中文翻译:
创建 Amazon API Gateway HTTP API。在单独的 AWS Lambda 函数中实现每个 Webhook 逻辑。更新 Git 服务器以调用 API 网关端点。

C. Deploy the webhook logic to AWS App Runner. Create an ALB, and set App Runner as the target. Update the Git servers to call the ALB endpoint.

中文翻译:
将 Webhook 逻辑部署到 AWS App Runner。创建 ALB,并将 App Runner 设置为目标。更新 Git 服务器以调用 ALB 端点。

D. Containerize the webhook logic. Create an Amazon Elastic Container Service (Amazon ECS) cluster, and run the webhook logic in AWS Fargate. Create an Amazon API Gateway REST API, and set Fargate as the target. Update the Git servers to call the API Gateway endpoint.

中文翻译:
将 webhook 逻辑容器化。创建 Amazon Elastic Container Service (Amazon ECS) 集群,并在 AWS Fargate 中运行 Webhook 逻辑。创建 Amazon API Gateway REST API,并将 Fargate 设置为目标。更新 Git 服务器以调用 API 网关端点。

答案

B

解析

正确答案:B 解析: 本题应选择 B。 正确选项: B. 创建 Amazon API Gateway HTTP API。在单独的 AWS Lambda 函数中实现每个 Webhook 逻辑。更新 Git 服务器以调用 API 网关端点。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相...

登录后查看完整解析