SAP-C02 第 127 题
题目
A delivery company needs to migrate its third-party route planning application to AWS. The third party supplies a supported Docker image from a public registry. The image can run in as many containers as required to generate the route map. The company has divided the delivery area into sections with supply hubs so that delivery drivers travel the shortest distance possible from the hubs to the customers. To reduce the time necessary to generate route maps, each section uses its own set of Docker containers with a custom configuration that processes orders only in the section's area. The company needs the ability to allocate resources cost-effectively based on the number of running containers. Which solution will meet these requirements with the LEAST operational overhead?
中文翻译:
一家快递公司需要将其第三方路线规划应用程序迁移到 AWS。第三方从公共注册表提供受支持的 Docker 映像。该映像可以根据需要在任意多个容器中运行以生成路线图。该公司将配送区域划分为具有供应中心的区域,以便送货司机从中心到客户的距离尽可能短。为了减少生成路线图所需的时间,每个部分都使用自己的一组 Docker 容器,并具有自定义配置,仅处理该部分区域中的订单。公司需要能够根据运行的容器数量经济高效地分配资源。哪种解决方案能够以最少的运营开销满足这些要求?
选项
A. Create an Amazon Elastic Kubernetes Service (Amazon EKS) cluster on Amazon EC2. Use the Amazon EKS CLI to launch the planning application in pods by using the --tags option to assign a custom tag to the pod.
中文翻译:
在 Amazon EC2 上创建 Amazon Elastic Kubernetes Service (Amazon EKS) 集群。使用 Amazon EKS CLI 在 Pod 中启动规划应用程序,方法是使用 --tags 选项为 Pod 分配自定义标签。
B. Create an Amazon Elastic Kubernetes Service (Amazon EKS) cluster on AWS Fargate. Use the Amazon EKS CLI to launch the planning application. Use the AWS CLI tag-resource API call to assign a custom tag to the pod.
中文翻译:
在 AWS Fargate 上创建 Amazon Elastic Kubernetes Service (Amazon EKS) 集群。使用 Amazon EKS CLI 启动规划应用程序。使用 AWS CLI 标签资源 API 调用将自定义标签分配给 Pod。
C. Create an Amazon Elastic Container Service (Amazon ECS) cluster on Amazon EC2. Use the AWS CLI with run-tasks set to true to launch the planning application by using the --tags option to assign a custom tag to the task.
中文翻译:
在 Amazon EC2 上创建 Amazon Elastic Container Service (Amazon ECS) 集群。使用 AWS CLI 将 run-tasks 设置为 true 来启动规划应用程序,并使用 --tags 选项为任务分配自定义标签。
D. Create an Amazon Elastic Container Service (Amazon ECS) cluster on AWS Fargate. Use the AWS CLI run-task command and set enableECSManagedTags to true to launch the planning application. Use the --tags option to assign a custom tag to the task.
中文翻译:
在 AWS Fargate 上创建 Amazon Elastic Container Service (Amazon ECS) 集群。使用 AWS CLI run-task 命令并将 enableECSManagedTags 设置为 true 以启动规划应用程序。使用 --tags 选项为任务分配自定义标签。
答案
D
解析
正确答案:D 解析: 本题应选择 D。 正确选项: D. 在 AWS Fargate 上创建 Amazon Elastic Container Service (Amazon ECS) 集群。使用 AWS CLI run-task 命令并将 enableECSManagedTags 设置为 true 以启动规划应用程序。使用 --tags 选项为任务分配自定义标签。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题...