SAP-C02 学习助手

SAP-C02 第 374 题

Lambda EC2 RDS Aurora EventBridge Step Functions Auto Scaling

题目

A live-events company is designing a scaling solution for its ticket application on AWS. The application has high peaks of utilization during sale events. Each sale event is a one-time event that is scheduled. The application runs on Amazon EC2 instances that are in an Auto Scaling group. The application uses PostgreSQL for the database layer. The company needs a scaling solution to maximize availability during the sale events. Which solution will meet these requirements?

中文翻译:
一家现场活动公司正在为其 AWS 上的门票应用程序设计扩展解决方案。该应用程序在促销活动期间的利用率很高。每个销售活动都是预定的一次性活动。该应用程序在 Auto Scaling 组中的 Amazon EC2 实例上运行。该应用程序使用 PostgreSQL 作为数据库层。该公司需要一个扩展解决方案,以最大限度地提高销售活动期间的可用性。哪种解决方案可以满足这些要求?

选项

A. Use a predictive scaling policy for the EC2 instances. Host the database on an Amazon Aurora PostgreSQL Serverless v2 Multi-AZ DB instance with automatically scaling read replicas. Create an AWS Step Functions state machine to run parallel AWS Lambda functions to pre-warm the database before a sale event. Create an Amazon EventBridge rule to invoke the state machine.

中文翻译:
对 EC2 实例使用预测扩展策略。将数据库托管在具有自动扩展只读副本功能的 Amazon Aurora PostgreSQL Serverless v2 多可用区数据库实例上。创建 AWS Step Functions 状态机来运行并行 AWS Lambda 函数,以便在销售活动之前预热数据库。创建 Amazon EventBridge 规则以调用状态机。

B. Use a scheduled scaling policy for the EC2 instances. Host the database on an Amazon RDS for PostgreSQL Mulli-AZ DB instance with automatically scaling read replicas. Create an Amazon EventBridge rule that invokes an AWS Lambda function to create a larger read replica before a sale event. Fail over to the larger read replica. Create another EventBridge rule that invokes another Lambda function to scale down the read replica after the sale event.

中文翻译:
对 EC2 实例使用计划的扩展策略。将数据库托管在具有自动扩展只读副本功能的 Amazon RDS for PostgreSQL 多可用区数据库实例上。创建一个 Amazon EventBridge 规则,该规则调用 AWS Lambda 函数以在促销活动之前创建更大的只读副本。故障转移到更大的只读副本。创建另一个 EventBridge 规则,该规则调用另一个 Lambda 函数以在销售事件后缩减只读副本。

C. Use a predictive scaling policy for the EC2 instances. Host the database on an Amazon RDS for PostgreSQL MultiAZ DB instance with automatically scaling read replicas. Create an AWS Step Functions state machine to run parallel AWS Lambda functions to pre-warm the database before a sale event. Create an Amazon EventBridge rule to invoke the state machine.

中文翻译:
对 EC2 实例使用预测扩展策略。将数据库托管在 Amazon RDS for PostgreSQL 多可用区数据库实例上,并自动扩展只读副本。创建 AWS Step Functions 状态机来运行并行 AWS Lambda 函数,以便在销售活动之前预热数据库。创建 Amazon EventBridge 规则以调用状态机。

D. Use a scheduled scaling policy for the EC2 instances. Host the database on an Amazon Aurora PostgreSQL Multi-AZ DB cluster. Create an Amazon EventBridge rule that invokes an AWS Lambda function to create a larger Aurora Replica before a sale event. Fail over to the larger Aurora Replica. Create another EventBridge rule that invokes another Lambda function to scale down the Aurora Replica after the sale event.

中文翻译:
对 EC2 实例使用计划的扩展策略。将数据库托管在 Amazon Aurora PostgreSQL 多可用区数据库集群上。创建一个 Amazon EventBridge 规则,该规则调用 AWS Lambda 函数以在促销活动之前创建更大的 Aurora 副本。故障转移到更大的 Aurora 副本。创建另一个 EventBridge 规则,该规则调用另一个 Lambda 函数以在促销活动结束后缩小 Aurora 副本的规模。

答案

D

解析

正确答案:D 解析: 本题应选择 D。 正确选项: D. 对 EC2 实例使用计划的扩展策略。将数据库托管在 Amazon Aurora PostgreSQL 多可用区数据库集群上。创建一个 Amazon EventBridge 规则,该规则调用 AWS Lambda 函数以在促销活动之前创建更大的 Aurora 副本。故障转移到更大的 Aurora 副本。创建另一个 EventBridge 规则,该规则调用另一个 Lambda 函数以...

登录后查看完整解析