SAP-C02 学习助手

SAP-C02 第 191 题

EC2 EBS EFS FSx IAM ECS Fargate Auto Scaling

题目

A company is planning to migrate an application to AWS. The application runs as a Docker container and uses an NFS version 4 file share. A solutions architect must design a secure and scalable containerized solution that does not require provisioning or management of the underlying infrastructure. Which solution will meet these requirements?

中文翻译:
一家公司正计划将应用程序迁移到 AWS。该应用程序作为 Docker 容器运行并使用 NFS 版本 4 文件共享。解决方案架构师必须设计一个安全且可扩展的容器化解决方案,该解决方案不需要配置或管理底层基础设施。哪种解决方案可以满足这些要求?

选项

A. Deploy the application containers by using Amazon Elastic Container Service (Amazon ECS) with the Fargate launch type. Use Amazon Elastic File System (Amazon EFS) for shared storage. Reference the EFS file system ID, container mount point, and EFS authorization IAM role in the ECS task definition.

中文翻译:
使用具有 Fargate 启动类型的 Amazon Elastic Container Service (Amazon ECS) 来部署应用程序容器。使用 Amazon Elastic File System (Amazon EFS) 进行共享存储。在ECS任务定义中引用EFS文件系统ID、容器挂载点和EFS授权IAM角色。

B. Deploy the application containers by using Amazon Elastic Container Service (Amazon ECS) with the Fargate launch type. Use Amazon FSx for Lustre for shared storage. Reference the FSx for Lustre file system ID, container mount point, and FSx for Lustre authorization IAM role in the ECS task definition.

中文翻译:
使用具有 Fargate 启动类型的 Amazon Elastic Container Service (Amazon ECS) 来部署应用程序容器。使用 Amazon FSx for Lustre 进行共享存储。在 ECS 任务定义中引用 FSx for Lustre 文件系统 ID、容器挂载点和 FSx for Lustre 授权 IAM 角色。

C. Deploy the application containers by using Amazon Elastic Container Service (Amazon ECS) with the Amazon EC2 launch type and auto scaling turned on. Use Amazon Elastic File System (Amazon EFS) for shared storage. Mount the EFS file system on the ECS container instances. Add the EFS authorization IAM role to the EC2 instance profile.

中文翻译:
使用 Amazon Elastic Container Service (Amazon ECS) 部署应用程序容器,并启用 Amazon EC2 启动类型和自动扩展。使用 Amazon Elastic File System (Amazon EFS) 进行共享存储。在ECS容器实例上挂载EFS文件系统。将 EFS 授权 IAM 角色添加到 EC2 实例配置文件。

D. Deploy the application containers by using Amazon Elastic Container Service (Amazon ECS) with the Amazon EC2 launch type and auto scaling turned on. Use Amazon Elastic Block Store (Amazon EBS) volumes with Multi-Attach enabled for shared storage. Attach the EBS volumes to ECS container instances. Add the EBS authorization IAM role to an EC2 instance profile.

中文翻译:
使用 Amazon Elastic Container Service (Amazon ECS) 部署应用程序容器,并启用 Amazon EC2 启动类型和自动扩展。使用启用了多重附加的 Amazon Elastic Block Store (Amazon EBS) 卷来实现共享存储。将 EBS 卷附加到 ECS 容器实例。将 EBS 授权 IAM 角色添加到 EC2 实例配置文件。

答案

A

解析

正确答案:A 解析: 本题应选择 A。 正确选项: A. 使用具有 Fargate 启动类型的 Amazon Elastic Container Service (Amazon ECS) 来部署应用程序容器。使用 Amazon Elastic File System (Amazon EFS) 进行共享存储。在ECS任务定义中引用EFS文件系统ID、容器挂载点和EFS授权IAM角色。 选择理由: 该选项最直接地满足题干中的关键约束。做 S...

登录后查看完整解析