SAP-C02 学习助手

SAP-C02 第 293 题

VPC EC2 Auto Scaling

题目

A solutions architect has an operational workload deployed on Amazon EC2 instances in an Auto Scaling group. The VPC architecture spans two Availability Zones (AZ) with a subnet in each that the Auto Scaling group is targeting. The VPC is connected to an on-premises environment and connectivity cannot be interrupted. The maximum size of the Auto Scaling group is 20 instances in service. The VPC IPv4 addressing is as follows: VPC CIDR: 10.0.0.0/23 - AZ1 subnet CIDR: 10.0.0.0/24 - AZ2 subnet CIDR: 10.0.1.0/24 - Since deployment, a third AZ has become available in the Region. The solutions architect wants to adopt the new AZ without adding additional IPv4 address space and without service downtime. Which solution will meet these requirements? VPC CIDR: 10.0.0.0/23 -

中文翻译:
解决方案架构师在 Auto Scaling 组中的 Amazon EC2 实例上部署了操作工作负载。 VPC 架构跨越两个可用区 (AZ),每个可用区都有一个 Auto Scaling 组所针对的子网。 VPC与本地环境连接,且连接不中断。 Auto Scaling 组的最大大小为 20 个正在服务的实例。 VPC IPv4 寻址如下: VPC CIDR:10.0.0.0/23 - AZ1 子网 CIDR:10.0.0.0/24 - AZ2 子网 CIDR:10.0.1.0/24 - 自部署以来,第三个可用区已在该区域中可用。解决方案架构师希望采用新的可用区,而无需添加额外的 IPv4 地址空间,也不会造成服务停机。哪种解决方案可以满足这些要求? VPC CIDR:10.0.0.0/23 -

选项

A. Update the Auto Scaling group to use the AZ2 subnet only. Delete and re-create the AZ1 subnet using half the previous address space. Adjust the Auto Scaling group to also use the new AZ1 subnet. When the instances are healthy, adjust the Auto Scaling group to use the AZ1 subnet only. Remove the current AZ2 subnet. Create a new AZ2 subnet using the second half of the address space from the original AZ1 subnet. Create a new AZ3 subnet using half the original AZ2 subnet address space, then update the Auto Scaling group to target all three new subnets.

中文翻译:
更新 Auto Scaling 组以仅使用 AZ2 子网。使用先前地址空间的一半删除并重新创建 AZ1 子网。调整 Auto Scaling 组以也使用新的 AZ1 子网。当实例运行状况良好时,将 Auto Scaling 组调整为仅使用 AZ1 子网。删除当前的 AZ2 子网。使用原始 AZ1 子网的后半部分地址空间创建新的 AZ2 子网。使用一半的原始 AZ2 子网地址空间创建新的 AZ3 子网,然后更新 Auto Scaling 组以定位所有三个新子网。

B. Terminate the EC2 instances in the AZ1 subnet. Delete and re-create the AZ1 subnet using half the address space. Update the Auto Scaling group to use this new subnet. Repeat this for the second AZ. Define a new subnet in AZ3, then update the Auto Scaling group to target all three new subnets.

中文翻译:
终止 AZ1 子网中的 EC2 实例。使用一半的地址空间删除并重新创建 AZ1 子网。更新 Auto Scaling 组以使用此新子网。对第二个 AZ 重复此操作。在 AZ3 中定义一个新子网,然后更新 Auto Scaling 组以定位所有三个新子网。

C. Create a new VPC with the same IPv4 address space and define three subnets, with one for each AZ. Update the existing Auto Scaling group to target the new subnets in the new VPC.

中文翻译:
创建一个具有相同 IPv4 地址空间的新 VPC,并定义三个子网,每个可用区一个子网。更新现有 Auto Scaling 组以定位新 VPC 中的新子网。

D. Update the Auto Scaling group to use the AZ2 subnet only. Update the AZ1 subnet to have half the previous address space. Adjust the Auto Scaling group to also use the AZ1 subnet again. When the instances are healthy, adjust the Auto Scaling group to use the AZ1 subnet only. Update the current AZ2 subnet and assign the second half of the address space from the original AZ1 subnet. Create a new AZ3 subnet using half the original AZ2 subnet address space, then update the Auto Scaling group to target all three new subnets.

中文翻译:
更新 Auto Scaling 组以仅使用 AZ2 子网。更新 AZ1 子网以拥有先前地址空间的一半。调整 Auto Scaling 组以再次使用 AZ1 子网。当实例运行状况良好时,将 Auto Scaling 组调整为仅使用 AZ1 子网。更新当前 AZ2 子网并分配原始 AZ1 子网的后半部分地址空间。使用一半的原始 AZ2 子网地址空间创建新的 AZ3 子网,然后更新 Auto Scaling 组以定位所有三个新子网。

答案

A

解析

正确答案:A 解析: 本题应选择 A。 正确选项: A. 更新 Auto Scaling 组以仅使用 AZ2 子网。使用先前地址空间的一半删除并重新创建 AZ1 子网。调整 Auto Scaling 组以也使用新的 AZ1 子网。当实例运行状况良好时,将 Auto Scaling 组调整为仅使用 AZ1 子网。删除当前的 AZ2 子网。使用原始 AZ1 子网的后半部分地址空间创建新的 AZ2 子网。使用一半的原始 AZ2 子网地址空间创...

登录后查看完整解析