
Answer-first summary for fast verification
Answer: Choose an Application Load Balancer (ALB) as the type of load balancer for the ECS service. Create path-based routing rules to allow the application to target the containers that are registered in the target group. Specify the ALB in the service definition. Create a VPC endpoint service for the ALB Share the VPC endpoint service with other AWS accounts.
The question requires a solution that allows for SSL connectivity, private connectivity from other AWS accounts, and scalable management of the application. Option B is the correct choice because it uses an Application Load Balancer (ALB) which supports SSL termination, path-based routing for targeting specific containers, and can be integrated with a VPC endpoint service. This setup allows for private connectivity from other AWS accounts by sharing the VPC endpoint service, ensuring secure and scalable access to the application. Option A is incorrect because Gateway Load Balancer (GLB) is designed for third-party virtual appliances and does not fit the described scenario. Option C is incorrect because while it uses an ALB, it suggests using VPC peering which is not the most efficient or secure method for sharing access with other AWS accounts compared to VPC endpoint services. Option D is incorrect because Network Load Balancer (NLB) does not support path-based routing or SSL termination at the load balancer level, which are requirements for the application.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company is deploying an application using containers in an Amazon ECS cluster with the Fargate launch type. The containers require SSL-initiated connectivity for their workloads, and traffic must be privately accessible from other AWS accounts. The solution must also enable scalable and manageable growth as application usage increases.
Which solution meets these requirements?
A
Choose a Gateway Load Balancer (GLB) as the type of load balancer for the ECS service. Create a lifecycle hook to add new tasks to the target group from Amazon ECS as required to handle scaling. Specify the GLB in the service definition. Create a VPC peer for external AWS accounts. Update the route tables so that the AWS accounts can reach the GLB.
B
Choose an Application Load Balancer (ALB) as the type of load balancer for the ECS service. Create path-based routing rules to allow the application to target the containers that are registered in the target group. Specify the ALB in the service definition. Create a VPC endpoint service for the ALB Share the VPC endpoint service with other AWS accounts.
C
Choose an Application Load Balancer (ALB) as the type of load balancer for the ECS service. Create path-based routing rules to allow the application to target the containers that are registered in the target group. Specify the ALB in the service definition. Create a VPC peer for the external AWS accounts. Update the route tables so that the AWS accounts can reach the ALB.
D
Choose a Network Load Balancer (NLB) as the type of load balancer for the ECS service. Specify the NLB in the service definition. Create a VPC endpoint service for the NLB. Share the VPC endpoint service with other AWS accounts.