SAP-C02 第 33 题
题目
A company is hosting a monolithic REST-based API for a mobile app on five Amazon EC2 instances in public subnets of a VPC. Mobile clients connect to the API by using a domain name that is hosted on Amazon Route 53. The company has created a Route 53 multivalue answer routing policy with the IP addresses of all the EC2 instances. Recently, the app has been overwhelmed by large and sudden increases to traffic. The app has not been able to keep up with the traffic. A solutions architect needs to implement a solution so that the app can handle the new and varying load. Which solution will meet these requirements with the LEAST operational overhead?
中文翻译:
一家公司正在 VPC 公有子网中的五个 Amazon EC2 实例上托管移动应用程序的基于 REST 的整体 API。移动客户端使用 Amazon Route 53 上托管的域名连接到 API。该公司已使用所有 EC2 实例的 IP 地址创建了 Route 53 多值应答路由策略。最近,该应用程序因流量突然大幅增加而不堪重负。该应用程序无法跟上流量。解决方案架构师需要实现一个解决方案,以便应用程序可以处理新的和变化的负载。哪种解决方案能够以最少的运营开销满足这些要求?
选项
A. Separate the API into individual AWS Lambda functions. Configure an Amazon API Gateway REST API with Lambda integration for the backend. Update the Route 53 record to point to the API Gateway API.
中文翻译:
将 API 分成单独的 AWS Lambda 函数。为后端配置具有 Lambda 集成的 Amazon API Gateway REST API。更新 Route 53 记录以指向 API Gateway API。
B. Containerize the API logic. Create an Amazon Elastic Kubernetes Service (Amazon EKS) cluster. Run the containers in the cluster by using Amazon EC2. Create a Kubernetes ingress. Update the Route 53 record to point to the Kubernetes ingress.
中文翻译:
将 API 逻辑容器化。创建 Amazon Elastic Kubernetes Service (Amazon EKS) 集群。使用 Amazon EC2 运行集群中的容器。创建 Kubernetes 入口。更新 Route 53 记录以指向 Kubernetes 入口。
C. Create an Auto Scaling group. Place all the EC2 instances in the Auto Scaling group. Configure the Auto Scaling group to perform scaling actions that are based on CPU utilization. Create an AWS Lambda function that reacts to Auto Scaling group changes and updates the Route 53 record.
中文翻译:
创建 Auto Scaling 组。将所有 EC2 实例放入 Auto Scaling 组中。配置 Auto Scaling 组以执行基于 CPU 利用率的扩展操作。创建一个 AWS Lambda 函数,该函数对 Auto Scaling 组更改做出反应并更新 Route 53 记录。
D. Create an Application Load Balancer (ALB) in front of the API. Move the EC2 instances to private subnets in the VPC. Add the EC2 instances as targets for the ALB. Update the Route 53 record to point to the ALB.
中文翻译:
在 API 前面创建应用程序负载均衡器 (ALB)。将 EC2 实例移至 VPC 中的私有子网。添加 EC2 实例作为 ALB 的目标。更新 Route 53 记录以指向 ALB。
答案
A
解析
正确答案:A 解析: 本题应选择 A。 正确选项: A. 将 API 分成单独的 AWS Lambda 函数。为后端配置具有 Lambda 集成的 Amazon API Gateway REST API。更新 Route 53 记录以指向 API Gateway API。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性...