SAP-C02 第 342 题
题目
A company migrated an application to the AWS Cloud. The application runs on two Amazon EC2 instances behind an Application Load Balancer (ALB). Application data is stored in a MySQL database that runs on an additional EC2 instance. The application's use of the database is read-heavy. The application loads static content from Amazon Elastic Block Store (Amazon EBS) volumes that are attached to each EC2 instance. The static content is updated frequently and must be copied to each EBS volume. The load on the application changes throughout the day. During peak hours, the application cannot handle all the incoming requests. Trace data shows that the database cannot handle the read load during peak hours. Which solution will improve the reliability of the application?
中文翻译:
一家公司将应用程序迁移到 AWS 云。该应用程序在应用程序负载均衡器 (ALB) 后面的两个 Amazon EC2 实例上运行。应用程序数据存储在另一个 EC2 实例上运行的 MySQL 数据库中。应用程序对数据库的使用是大量读取的。该应用程序从附加到每个 EC2 实例的 Amazon Elastic Block Store (Amazon EBS) 卷加载静态内容。静态内容经常更新,必须复制到每个 EBS 卷。应用程序的负载全天都在变化。在高峰时段,应用程序无法处理所有传入请求。跟踪数据显示数据库无法处理高峰时段的读取负载。哪种解决方案将提高应用程序的可靠性?
选项
A. Migrate the application to a set of AWS Lambda functions. Set the Lambda functions as targets for the ALB. Create a new single EBS volume for the static content. Configure the Lambda functions to read from the new EBS volume. Migrate the database to an Amazon RDS for MySQL Multi-AZ DB cluster.
中文翻译:
将应用程序迁移到一组 AWS Lambda 函数。将 Lambda 函数设置为 ALB 的目标。为静态内容创建一个新的单个 EBS 卷。配置 Lambda 函数以从新的 EBS 卷读取。将数据库迁移到 Amazon RDS for MySQL 多可用区数据库集群。
B. Migrate the application to a set of AWS Step Functions state machines. Set the state machines as targets for the ALCreate an Amazon Elastic File System (Amazon EFS) file system for the static content. Configure the state machines to read from the EFS file system. Migrate the database to Amazon Aurora MySQL Serverless v2 with a reader DB instance.
中文翻译:
将应用程序迁移到一组 AWS Step Functions 状态机。将状态机设置为 AL 的目标为静态内容创建 Amazon Elastic File System (Amazon EFS) 文件系统。配置状态机以从 EFS 文件系统读取。使用读取器数据库实例将数据库迁移到 Amazon Aurora MySQL Serverless v2。
C. Containerize the application. Migrate the application to an Amazon Elastic Container Service (Amazon ECS) cluster. Use the AWS Fargate launch type for the tasks that host the application. Create a new single EBS volume for the static content. Mount the new EBS volume on the ECS cluster. Configure AWS Application Auto Scaling on the ECS cluster. Set the ECS service as a target for the ALB. Migrate the database to an Amazon RDS for MySQL Multi-AZ DB cluster.
中文翻译:
将应用程序容器化。将应用程序迁移到 Amazon Elastic Container Service (Amazon ECS) 集群。对托管应用程序的任务使用 AWS Fargate 启动类型。为静态内容创建一个新的单个 EBS 卷。在 ECS 集群上挂载新的 EBS 卷。在 ECS 集群上配置 AWS Application Auto Scaling。将 ECS 服务设置为 ALB 的目标。将数据库迁移到 Amazon RDS for MySQL 多可用区数据库集群。
D. Containerize the application. Migrate the application to an Amazon Elastic Container Service (Amazon ECS) cluster. Use the AWS Fargate launch type for the tasks that host the application. Create an Amazon Elastic File System (Amazon EFS) file system for the static content. Mount the EFS file system to each container. Configure AWS Application Auto Scaling on the ECS cluster. Set the ECS service as a target for the ALB. Migrate the database to Amazon Aurora MySQL Serverless v2 with a reader DB instance.
中文翻译:
将应用程序容器化。将应用程序迁移到 Amazon Elastic Container Service (Amazon ECS) 集群。对托管应用程序的任务使用 AWS Fargate 启动类型。为静态内容创建 Amazon Elastic File System (Amazon EFS) 文件系统。将 EFS 文件系统挂载到每个容器。在 ECS 集群上配置 AWS Application Auto Scaling。将 ECS 服务设置为 ALB 的目标。使用读取器数据库实例将数据库迁移到 Amazon Aurora MySQL Serverless v2。
答案
D
解析
正确答案:D 解析: 本题应选择 D。 正确选项: D. 将应用程序容器化。将应用程序迁移到 Amazon Elastic Container Service (Amazon ECS) 集群。对托管应用程序的任务使用 AWS Fargate 启动类型。为静态内容创建 Amazon Elastic File System (Amazon EFS) 文件系统。将 EFS 文件系统挂载到每个容器。在 ECS 集群上配置 AWS Applica...