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
技巧:排除明顯錯誤選項,在沒有明顯錯誤的選項中選擇最合理的選項。
一家公司提供基于互聯(lián)網(wǎng)協(xié)議的語音(VoIP)服務,該服務使用 UDP 連接,并由在 Auto Scaling 組中運行的 Amazon EC2 實例組成。該公司在多個 AWS 區(qū)域有部署,需要將用戶路由到延遲最低的區(qū)域,并需要在區(qū)域之間實現(xiàn)自動故障轉(zhuǎn)移。
A. 正確。部署一個網(wǎng)絡負載均衡器(NLB)和一個關(guān)聯(lián)的目標組。將目標組與 Auto Scaling 組關(guān)聯(lián)。在每個區(qū)域中將 NLB 用作 AWS Global Accelerator 端點。網(wǎng)絡負載均衡器(NLB) 適用于 TCP、UDP 和 TLS 流量,適合 VoIP 服務。AWS Global Accelerator 是一個網(wǎng)絡服務,通過優(yōu)化用戶到應用程序的路徑,提高應用程序的可用性和性能。它使用 AWS 全球網(wǎng)絡基礎設施,將用戶流量路由到延遲最低的 AWS 端點。將 NLB 用作 AWS Global Accelerator 的端點,可以確保用戶被路由到延遲最低的區(qū)域。AWS Global Accelerator 還提供了自動故障轉(zhuǎn)移功能,如果某個區(qū)域的端點不可用,流量將自動路由到其他可用的端點。
B. 不正確。部署一個應用負載均衡器(ALB)和一個關(guān)聯(lián)的目標組。將目標組與 Auto Scaling 組關(guān)聯(lián)。在每個區(qū)域中將 ALB 用作 AWS Global Accelerator 端點。應用負載均衡器(ALB) 主要用于 HTTP 和 HTTPS 流量,不適合 UDP 流量的 VoIP 服務。
C. 不正確。部署一個網(wǎng)絡負載均衡器(NLB)和一個關(guān)聯(lián)的目標組。將目標組與 Auto Scaling 組關(guān)聯(lián)。創(chuàng)建一個指向每個 NLB 的別名的 Amazon Route 53 延遲記錄。創(chuàng)建一個使用延遲記錄作為源的 Amazon CloudFront 分發(fā)。Amazon Route 53 延遲記錄 可以根據(jù)用戶的地理位置和網(wǎng)絡條件,將用戶路由到延遲最低的 AWS 端點,但是 Amazon CloudFront 是一個內(nèi)容分發(fā)網(wǎng)絡(CDN),主要用于加速靜態(tài)和動態(tài)內(nèi)容的交付,并不適合作為 VoIP 服務的源。VoIP 服務需要實時的、低延遲的連接,而 CloudFront 的設計初衷并不是為了提供這種類型的連接。
D. 不正確。部署一個應用負載均衡器(ALB)和一個關(guān)聯(lián)的目標組。將目標組與 Auto Scaling 組關(guān)聯(lián)。創(chuàng)建一個指向每個 ALB 的別名的 Amazon Route 53 加權(quán)記錄。部署一個使用加權(quán)記錄作為源的 Amazon CloudFront 分發(fā)。加權(quán)記錄 允許用戶根據(jù)權(quán)重分配流量,但并不能確保用戶被路由到延遲最低的區(qū)域。
同樣,Amazon CloudFront 不適合作為 VoIP 服務的源。ALB 也不支持 UDP。