0 votes
in AWS by

You are developing an application that is going to make use of Docker containers.

Traffic needs to be routed based on demand to the application.

Dynamic host port mapping would be used for the docker containers.

Which of the following two options would you use for the distribution of traffic to the Docker containers?

1 Answer

0 votes
by

Answer - A & B.

The AWS Documentation mentions the following.

Application Load Balancers offer several features that make them attractive for use with Amazon ECS services.

Application Load Balancers allow containers to use dynamic host port mapping (so that multiple tasks from the same service are allowed per container instance).

Application Load Balancers support path-based routing and priority rules (so that multiple services can use the same listener port on a single Application Load Balancer).

Network Load Balancers do support dynamic host port mapping.

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html#nlb

Options D is invalid since the Application Load balancer is ideal when you have the requirement for path-based routing.

Option C is incorrect since this is used for DNS Routing.

...