Q42 — AWS SAA-C03 第3章
第 42/65 题 | ← 返回第3章
Q172.一家公司希望将其现有的本地整体式应用程序迁移到 AWS.公司希望保留尽可能多的前端代码和后端代码.然而,该公司希望将应用程序分解成更小的应用程序.不同的团队将管理每个应用程序.公司需要一个高度可扩展的解决方案,以最大限度地减少运营开销.哪种解决方案可以满足这些要求?
- A. 在 AWS Lambda 上托管应用程序.将应用程序与 Amazon API Gateway 集成
- B. 使用 AWS Amplify 托管应用程序.将应用程序连接到与 AWS Lambda 集成的 Amazon API Gateway API
- C. 在 Amazon EC2 实例上托管应用程序.设置应用程序负载均衡器,将 Auto Scaling 组中的 EC2 实例作为目标
- D. 在 Amazon Elastic Container Service (Amazon ECS) 上托管应用程序.设置一个以 Amazon ECS 作为目标的 Application Load Balancer ✓
正确答案: D. 在 Amazon Elastic Container Service (Amazon ECS) 上托管应用程序.设置一个以 Amazon ECS 作为目标的 Application Load Balancer
解析
The requirement to break the monolithic application into smaller applications and have different teams manage each application suggests a microservices architecture is needed. The solution should also be highly scalable and minimize operational overhead. Amazon ECS is a container management service that supports Docker containers. It simplifies the deployment and scaling of containerized applications on AWS. ECS can auto-scale based on CPU or memory utilization, providing scalability with minimal operational overhead. Using an Application Load Balancer with Amazon ECS as the target allows you to distribute incoming traffic across multiple instances of your application. This approach provides high availability and fault tolerance. Additionally, Amazon ECS integrates well with other AWS services such as Amazon RDS, Amazon S3, etc., making it easier to build a complete microservices architecture.Option A is not a valid solution because AWS Lambda is not suitable for hosting long-running applications. Option B is not a valid solution because AWS Amplify is a framework for building, deploying, and managing web applications, not a hosting solution. Option C is not a valid solution because Amazon EC2 instances are not fully managed container orchestration services. The company will need to manage the EC2 instances, which will increase operational overhead.Therefore, option D is the correct solution for the company's requirements. 将单片应用程序分解成更小的应用程序,并让不同的团队管理每个应用程序的需求表明需要微服务架构。该解决方案还应该具有高度可伸缩性,并将操作开销降至最低。 Amazon ECS是一个支持Docker容器的容器管理服务。它简化了AWS上容器化应用程序的部署和扩展。ECS可以根据CPU或内存利用率自动扩展,以最小的操作开销提供可伸缩性。 使用Amazon ECS作为目标的应用程序负载均衡器允许您跨应用程序的多个实例分发传入流量。这种方法提供了高可用性和容错性。此外,Amazon ECS可以很好地与Amazon RDS、Amazon S3等其他AWS服务集成,从而更容易构建完整的微服务架构。选项A不是有效的解决方案,因为AWS Lambda不适合托管长时间运行的应用程序。 选项B不是有效的解决方案,因为AWS Amplify是用于构建、部署和管理web应用程序的框架,而不是托管解决方案。 选项C不是一个有效的解决方案,因为Amazon EC2实例不是完全托管的容器编排服务。公司将需要管理EC2实例,这将增加运营开销。因此,选项D是公司需求的正确解决方案。