SAP-C02 学习助手

SAP-C02 第 7 题

API Gateway Lambda EC2 Config ECS EKS Fargate

题目

A company is running a traditional web application on Amazon EC2 instances. The company needs to refactor the application as microservices that run on containers. Separate versions of the application exist in two distinct environments: production and testing. Load for the application is variable, but the minimum load and the maximum load are known. A solutions architect needs to design the updated application with a serverless architecture that minimizes operational complexity. Which solution will meet these requirements MOST cost-effectively?

中文翻译:
一家公司正在 Amazon EC2 实例上运行传统 Web 应用程序。该公司需要将应用程序重构为在容器上运行的微服务。应用程序的不同版本存在于两个不同的环境中:生产和测试。应用的负载是可变的,但最小负载和最大负载是已知的。解决方案架构师需要使用无服务器架构来设计更新的应用程序,以最大限度地降低操作复杂性。哪种解决方案能够最具成本效益地满足这些要求?

选项

A. Upload the container images to AWS Lambda as functions. Configure a concurrency limit for the associated Lambda functions to handle the expected peak load. Configure two separate Lambda integrations within Amazon API Gateway: one for production and one for testing.

中文翻译:
将容器映像作为函数上传到 AWS Lambda。为关联的 Lambda 函数配置并发限制以处理预期的峰值负载。在 Amazon API Gateway 中配置两个单独的 Lambda 集成:一个用于生产,一个用于测试。

B. Upload the container images to Amazon Elastic Container Registry (Amazon ECR). Configure two auto scaled Amazon Elastic Container Service (Amazon ECS) clusters with the Fargate launch type to handle the expected load. Deploy tasks from the ECR images. Configure two separate Application Load Balancers to direct traffic to the ECS clusters.

中文翻译:
将容器映像上传到 Amazon Elastic Container Registry (Amazon ECR)。使用 Fargate 启动类型配置两个自动扩展的 Amazon Elastic Container Service (Amazon ECS) 集群来处理预期负载。从 ECR 映像部署任务。配置两个单独的应用程序负载均衡器以将流量引导至 ECS 集群。

C. Upload the container images to Amazon Elastic Container Registry (Amazon ECR). Configure two auto scaled Amazon Elastic Kubernetes Service (Amazon EKS) clusters with the Fargate launch type to handle the expected load. Deploy tasks from the ECR images. Configure two separate Application Load Balancers to direct traffic to the EKS clusters.

中文翻译:
将容器映像上传到 Amazon Elastic Container Registry (Amazon ECR)。使用 Fargate 启动类型配置两个自动扩展的 Amazon Elastic Kubernetes Service (Amazon EKS) 集群来处理预期负载。从 ECR 映像部署任务。配置两个单独的应用程序负载均衡器以将流量引导至 EKS 集群。

D. Upload the container images to AWS Elastic Beanstalk. In Elastic Beanstalk, create separate environments and deployments for production and testing. Configure two separate Application Load Balancers to direct traffic to the Elastic Beanstalk deployments.

中文翻译:
将容器映像上传到 AWS Elastic Beanstalk。在 Elastic Beanstalk 中,为生产和测试创建单独的环境和部署。配置两个单独的应用程序负载均衡器以将流量引导至 Elastic Beanstalk 部署。

答案

B

解析

正确答案:B 解析: 本题应选择 B。 正确选项: B. 将容器映像上传到 Amazon Elastic Container Registry (Amazon ECR)。使用 Fargate 启动类型配置两个自动扩展的 Amazon Elastic Container Service (Amazon ECS) 集群来处理预期负载。从 ECR 映像部署任务。配置两个单独的应用程序负载均衡器以将流量引导至 ECS 集群。 选择理由: 该选项...

登录后查看完整解析