SAP-C02 学习助手

SAP-C02 第 525 题

EC2 Auto Scaling

题目

A company is hosting an application on AWS for a project that will run for the next 3 years. The application consists of 20 Amazon EC2 On-Demand Instances that are registered in a target group for a Network Load Balancer (NLB). The instances are spread across two Availability Zones. The application is stateless and runs 24 hours a day, 7 days a week. The company receives reports from users who are experiencing slow responses from the application. Performance metrics show that the instances are at 10% CPU utilization during normal application use. However, the CPU utilization increases to 100% at busy times, which typically last for a few hours. The company needs a new architecture to resolve the problem of slow responses from the application. Which solution will meet these requirements MOST cost-effectively?

中文翻译:
一家公司正在 AWS 上托管一个将在未来 3 年运行的项目的应用程序。该应用程序由 20 个 Amazon EC2 按需实例组成,这些实例在网络负载均衡器 (NLB) 的目标组中注册。这些实例分布在两个可用区。该应用程序是无状态的,每周 7 天、每天 24 小时运行。该公司收到用户的报告,称应用程序响应缓慢。性能指标显示,在正常应用程序使用期间,实例的 CPU 利用率为 10%。然而,CPU 利用率在繁忙时会增加到 100%,通常会持续几个小时。公司需要一种新的架构来解决应用程序响应慢的问题。哪种解决方案能够最具成本效益地满足这些要求?

选项

A. Create an Auto Scaling group. Attach the Auto Scaling group to the target group of the NLB. Set the minimum capacity to 20 and the desired capacity to 28. Purchase Reserved Instances for 20 instances.

中文翻译:
创建 Auto Scaling 组。将 Auto Scaling 组附加到 NLB 的目标组。将最小容量设置为 20,将所需容量设置为 28。购买 20 个实例的预留实例。

B. Create a Spot Fleet that has a request type of request. Set the TotalTargetCapacity parameter to 20. Set the DefaultTargetCapacityType parameter to On-Demand. Specify the NLB when creating the Spot Fleet.

中文翻译:
创建请求类型为 request 的 Spot 队列。将 TotalTargetCapacity 参数设置为 20。将 DefaultTargetCapacityType 参数设置为 On-Demand。创建 Spot 队列时指定 NLB。

C. Create a Spot Fleet that has a request type of maintain. Set the TotalTargetCapacity parameter to 20. Set the DefaultTargetCapacityType parameter to Spot. Replace the NLB with an Application Load Balancer.

中文翻译:
创建请求类型为维护的 Spot 队列。将 TotalTargetCapacity 参数设置为 20。将 DefaultTargetCapacityType 参数设置为 Spot。将 NLB 替换为应用程序负载均衡器。

D. Create an Auto Scaling group. Attach the Auto Scaling group to the target group of the NLB. Set the minimum capacity to 4 and the maximum capacity to 28. Purchase Reserved Instances for four instances.

中文翻译:
创建 Auto Scaling 组。将 Auto Scaling 组附加到 NLB 的目标组。将最小容量设置为 4,最大容量设置为 28。为四个实例购买预留实例。

答案

D

解析

正确答案:D 解析: 本题应选择 D。 正确选项: D. 创建 Auto Scaling 组。将 Auto Scaling 组附加到 NLB 的目标组。将最小容量设置为 4,最大容量设置为 28。为四个实例购买预留实例。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:...

登录后查看完整解析