Which solution will meet these requirements?
Use AWS Global Accelerator to create an accelerator. Create an Application Load Balancer (ALB) behind an accelerator endpoint that uses Global Accelerator integration and listening on the TCP and UDP ports. Update the Auto Scaling group to register instances on the ALB.
Use AWS Global Accelerator to create an accelerator. Create a Network Load Balancer (NLB) behind an accelerator endpoint that uses Global Accelerator integration and listening on the TCP and UDP ports. Update the Auto Scaling group to register instances on the NLB.
Create an Amazon CloudFront content delivery network (CDN) endpoint. Create a Network Load Balancer (NLB) behind the endpoint and listening on the TCP and UDP ports. Update the Auto Scaling group to register instances on the NLB. Update CloudFront to use the NLB as the origin.
Create an Amazon CloudFront content delivery network (CDN) endpoint. Create an Application Load Balancer (ALB) behind the endpoint and listening on the TCP and UDP ports. Update the Auto Scaling group to register instances on the ALB. Update CloudFront to use the ALB as the origin.
Explanations:
While using AWS Global Accelerator with an Application Load Balancer (ALB) can improve availability and performance for HTTP/HTTPS traffic, ALBs only support TCP traffic on HTTP(S) ports. They do not support UDP traffic, which is required for the app.
AWS Global Accelerator works well with a Network Load Balancer (NLB), which supports both TCP and UDP traffic. This setup minimizes latency for global users by routing traffic to the closest AWS Region where the application is hosted, thus providing optimal performance and availability.
Although CloudFront can be used for caching and distribution, it is primarily designed for HTTP/S traffic and does not natively support UDP traffic. Therefore, it does not meet the requirement for handling both TCP and UDP traffic effectively.
Similar to option C, CloudFront primarily supports HTTP/S traffic and is not designed for TCP/UDP load balancing. Additionally, ALBs do not support UDP traffic, making this solution inadequate for the requirements of the application.