Which configuration on AWS will meet these requirements?
Use a Network Load Balancer and host-based routing to respective backend target groups.
Use a Network Load Balancer and path-based routing to respective backend target groups.
Use an Application Load Balancer and host-based routing to respective backend target groups.
Use an Application Load Balancer and path-based routing to respective backend target groups.
Explanations:
A Network Load Balancer (NLB) operates at the TCP/UDP layer and does not support host-based routing. It is typically used for load balancing non-HTTP traffic.
A Network Load Balancer (NLB) supports TCP/UDP routing, not HTTP(S) request-based routing like path-based routing, which requires an Application Load Balancer.
An Application Load Balancer (ALB) supports host-based routing, which allows traffic to be forwarded to specific target groups based on the domain name in the HTTP Host header, as required.
Path-based routing works with ALBs but is not required in this case since the routing needs to be based on domain names (host headers), not URL paths.