A company provides a Voice over Internet Protocol (VoIP) service that uses UDP connections. The service consists of Amazon EC2 instances that run in an Auto Scaling group. The company has deployments across multiple AWS Regions. The company needs to route users to the Region with the lowest latency. The company also needs automated failover between Regions.
Which solution will meet these requirements?
A. Deploy a Network Load Balancer (NLB) and an associated target group. Associate the target group with the Auto Scaling group. Use the NLB as an AWS Global Accelerator endpoint in each Region.
B. Deploy an Application Load Balancer (ALB) and an associated target group. Associate the target group with the Auto Scaling group. Use the ALB as an AWS Global Accelerator endpoint in each Region.
C. Deploy a Network Load Balancer (NLB) and an associated target group. Associate the target group with the Auto Scaling group. Create an Amazon Route 53 latency record that points to aliases for each NLB. Create an Amazon CloudFront distribution that uses the latency record as an origin.
D. Deploy an Application Load Balancer (ALB) and an associated target group. Associate the target group with the Auto Scaling group. Create an Amazon Route 53 weighted record that points to aliases for each ALB. Deploy an Amazon CloudFront distribution that uses the weighted record as an origin.
A
技巧:排除明显错误选项,在没有明显错误的选项中选择最合理的选项。
一家公司提供基于互联网协议的语音(VoIP)服务,该服务使用 UDP 连接,并由在 Auto Scaling 组中运行的 Amazon EC2 实例组成。该公司在多个 AWS 区域有部署,需要将用户路由到延迟最低的区域,并需要在区域之间实现自动故障转移。
A. 正确。部署一个网络负载均衡器(NLB)和一个关联的目标组。将目标组与 Auto Scaling 组关联。在每个区域中将 NLB 用作 AWS Global Accelerator 端点。网络负载均衡器(NLB) 适用于 TCP、UDP 和 TLS 流量,适合 VoIP 服务。AWS Global Accelerator 是一个网络服务,通过优化用户到应用程序的路径,提高应用程序的可用性和性能。它使用 AWS 全球网络基础设施,将用户流量路由到延迟最低的 AWS 端点。将 NLB 用作 AWS Global Accelerator 的端点,可以确保用户被路由到延迟最低的区域。AWS Global Accelerator 还提供了自动故障转移功能,如果某个区域的端点不可用,流量将自动路由到其他可用的端点。
B. 不正确。部署一个应用负载均衡器(ALB)和一个关联的目标组。将目标组与 Auto Scaling 组关联。在每个区域中将 ALB 用作 AWS Global Accelerator 端点。应用负载均衡器(ALB) 主要用于 HTTP 和 HTTPS 流量,不适合 UDP 流量的 VoIP 服务。
C. 不正确。部署一个网络负载均衡器(NLB)和一个关联的目标组。将目标组与 Auto Scaling 组关联。创建一个指向每个 NLB 的别名的 Amazon Route 53 延迟记录。创建一个使用延迟记录作为源的 Amazon CloudFront 分发。Amazon Route 53 延迟记录 可以根据用户的地理位置和网络条件,将用户路由到延迟最低的 AWS 端点,但是 Amazon CloudFront 是一个内容分发网络(CDN),主要用于加速静态和动态内容的交付,并不适合作为 VoIP 服务的源。VoIP 服务需要实时的、低延迟的连接,而 CloudFront 的设计初衷并不是为了提供这种类型的连接。
D. 不正确。部署一个应用负载均衡器(ALB)和一个关联的目标组。将目标组与 Auto Scaling 组关联。创建一个指向每个 ALB 的别名的 Amazon Route 53 加权记录。部署一个使用加权记录作为源的 Amazon CloudFront 分发。加权记录 允许用户根据权重分配流量,但并不能确保用户被路由到延迟最低的区域。
同样,Amazon CloudFront 不适合作为 VoIP 服务的源。ALB 也不支持 UDP。