SAP-C02 学习助手

SAP-C02 第 106 题

API Gateway Lambda Config ECS EKS Fargate

题目

A company runs a Java application that has complex dependencies on VMs that are in the company's data center. The application is stable. but the company wants to modernize the technology stack. The company wants to migrate the application to AWS and minimize the administrative overhead to maintain the servers. Which solution will meet these requirements with the LEAST code changes?

中文翻译:
某公司运行的 Java 应用程序对公司数据中心内的虚拟机具有复杂的依赖关系。应用稳定。但该公司希望实现技术堆栈的现代化。该公司希望将应用程序迁移到 AWS 并最大限度地减少维护服务器的管理开销。哪种解决方案能够以最少的代码更改满足这些要求?

选项

A. Migrate the application to Amazon Elastic Container Service (Amazon ECS) on AWS Fargate by using AWS App2Container. Store container images in Amazon Elastic Container Registry (Amazon ECR). Grant the ECS task execution role permission 10 access the ECR image repository. Configure Amazon ECS to use an Application Load Balancer (ALB). Use the ALB to interact with the application.

中文翻译:
使用 AWS App2Container 将应用程序迁移到 AWS Fargate 上的 Amazon Elastic Container Service (Amazon ECS)。将容器映像存储在 Amazon Elastic Container Registry (Amazon ECR) 中。授予ECS任务执行角色10访问ECR镜像仓库的权限。配置 Amazon ECS 以使用应用程序负载均衡器 (ALB)。使用 ALB 与应用程序交互。

B. Migrate the application code to a container that runs in AWS Lambda. Build an Amazon API Gateway REST API with Lambda integration. Use API Gateway to interact with the application.

中文翻译:
将应用程序代码迁移到在 AWS Lambda 中运行的容器。使用 Lambda 集成构建 Amazon API Gateway REST API。使用 API Gateway 与应用程序交互。

C. Migrate the application to Amazon Elastic Kubernetes Service (Amazon EKS) on EKS managed node groups by using AWS App2Container. Store container images in Amazon Elastic Container Registry (Amazon ECR). Give the EKS nodes permission to access the ECR image repository. Use Amazon API Gateway to interact with the application.

中文翻译:
使用 AWS App2Container 将应用程序迁移到 EKS 托管节点组上的 Amazon Elastic Kubernetes Service (Amazon EKS)。将容器映像存储在 Amazon Elastic Container Registry (Amazon ECR) 中。授予 EKS 节点访问 ECR 映像存储库的权限。使用 Amazon API Gateway 与应用程序交互。

D. Migrate the application code to a container that runs in AWS Lambda. Configure Lambda to use an Application Load Balancer (ALB). Use the ALB to interact with the application.

中文翻译:
将应用程序代码迁移到在 AWS Lambda 中运行的容器。配置 Lambda 以使用应用程序负载均衡器 (ALB)。使用 ALB 与应用程序交互。

答案

A

解析

正确答案:A 解析: 本题应选择 A。 正确选项: A. 使用 AWS App2Container 将应用程序迁移到 AWS Fargate 上的 Amazon Elastic Container Service (Amazon ECS)。将容器映像存储在 Amazon Elastic Container Registry (Amazon ECR) 中。授予ECS任务执行角色10访问ECR镜像仓库的权限。配置 Amazon ECS 以使...

登录后查看完整解析