SAP-C02 第 24 题
题目
A company is developing a new service that will be accessed using TCP on a static port. A solutions architect must ensure that the service is highly available, has redundancy across Availability Zones, and is accessible using the DNS name my.service.com, which is publicly accessible. The service must use fixed address assignments so other companies can add the addresses to their allow lists. Assuming that resources are deployed in multiple Availability Zones in a single Region, which solution will meet these requirements?
中文翻译:
一家公司正在开发一项新服务,将在静态端口上使用 TCP 进行访问。解决方案架构师必须确保服务高度可用、跨可用区具有冗余,并且可以使用可公开访问的 DNS 名称 my.service.com 进行访问。该服务必须使用固定地址分配,以便其他公司可以将地址添加到其允许列表中。假设资源部署在单个Region的多个可用区,哪种解决方案可以满足这些要求?
选项
A. Create Amazon EC2 instances with an Elastic IP address for each instance. Create a Network Load Balancer (NLB) and expose the static TCP port. Register EC2 instances with the NLB. Create a new name server record set named my.service.com, and assign the Elastic IP addresses of the EC2 instances to the record set. Provide the Elastic IP addresses of the EC2 instances to the other companies to add to their allow lists.
中文翻译:
创建 Amazon EC2 实例,并为每个实例分配一个弹性 IP 地址。创建网络负载均衡器 (NLB) 并公开静态 TCP 端口。向 NLB 注册 EC2 实例。创建名为 my.service.com 的新名称服务器记录集,并将 EC2 实例的弹性 IP 地址分配给该记录集。将 EC2 实例的弹性 IP 地址提供给其他公司以添加到其允许列表中。
B. Create an Amazon ECS cluster and a service definition for the application. Create and assign public IP addresses for the ECS cluster. Create a Network Load Balancer (NLB) and expose the TCP port. Create a target group and assign the ECS cluster name to the NLCreate a new A record set named my.service.com, and assign the public IP addresses of the ECS cluster to the record set. Provide the public IP addresses of the ECS cluster to the other companies to add to their allow lists.
中文翻译:
为应用程序创建 Amazon ECS 集群和服务定义。为ECS集群创建并分配公网IP地址。创建网络负载均衡器 (NLB) 并公开 TCP 端口。创建目标组并将ECS集群名称分配给NL创建一个名为my.service.com的新A记录集,并将ECS集群的公共IP地址分配给该记录集。将 ECS 集群的公共 IP 地址提供给其他公司以添加到他们的允许列表中。
C. Create Amazon EC2 instances for the service. Create one Elastic IP address for each Availability Zone. Create a Network Load Balancer (NLB) and expose the assigned TCP port. Assign the Elastic IP addresses to the NLB for each Availability Zone. Create a target group and register the EC2 instances with the NLB. Create a new A (alias) record set named my.service.com, and assign the NLB DNS name to the record set.
中文翻译:
为该服务创建 Amazon EC2 实例。为每个可用区创建一个弹性 IP 地址。创建网络负载均衡器 (NLB) 并公开分配的 TCP 端口。将弹性 IP 地址分配给每个可用区的 NLB。创建目标组并向 NLB 注册 EC2 实例。创建名为 my.service.com 的新 A(别名)记录集,并将 NLB DNS 名称分配给该记录集。
D. Create an Amazon ECS cluster and a service definition for the application. Create and assign public IP address for each host in the cluster. Create an Application Load Balancer (ALB) and expose the static TCP port. Create a target group and assign the ECS service definition name to the ALB. Create a new CNAME record set and associate the public IP addresses to the record set. Provide the Elastic IP addresses of the Amazon EC2 instances to the other companies to add to their allow lists.
中文翻译:
为应用程序创建 Amazon ECS 集群和服务定义。为集群中的每台主机创建并分配公共 IP 地址。创建应用程序负载均衡器 (ALB) 并公开静态 TCP 端口。创建目标组并将 ECS 服务定义名称分配给 ALB。创建新的 CNAME 记录集并将公共 IP 地址关联到记录集。将 Amazon EC2 实例的弹性 IP 地址提供给其他公司以添加到其允许列表中。
答案
C
解析
正确答案:C 解析: 本题应选择 C。 正确选项: C. 为该服务创建 Amazon EC2 实例。为每个可用区创建一个弹性 IP 地址。创建网络负载均衡器 (NLB) 并公开分配的 TCP 端口。将弹性 IP 地址分配给每个可用区的 NLB。创建目标组并向 NLB 注册 EC2 实例。创建名为 my.service.com 的新 A(别名)记录集,并将 NLB DNS 名称分配给该记录集。 选择理由: 该选项最直接地满足题干中的关键约...