Q16 — AWS SAA-C03 Ch.11

Question 16 of 100 | ← Chapter 11

Q716. A company runs a container application by using Amazon Elastic Kubernetes Service (Amazon EKS). The application includes microservices that manage customers and place orders. The company needs to route incoming requests to the appropriate microservices.Which solution will meet this requirement MOST cost-effectively?

Correct Answer: B. Use the AWS Load Balancer Controller to provision an Application Load Balancer.

Explanation

To route incoming requests to the appropriate microservices in an Amazon Elastic Kubernetes Service (Amazon EKS) environment for a container application, the most cost-effective solution is:B. Use the AWS Load Balancer Controller to provision an Application Load Balancer.Option B provides a cost-effective solution that meets the requirement:- Use the AWS Load Balancer Controller: The AWS Load Balancer Controller is a Kubernetes ingress controller that manages Elastic Load Balancers (ELBs) for applications running in an Amazon EKS cluster. It simplifies the process of provisioning and managing load balancers for your microservices.- Provision an Application Load Balancer (ALB): An Application Load Balancer is a type of load balancer that operates at the application layer (Layer 7) of the OSI model. It allows you to route incoming requests based on various criteria, such as URL path, host, or HTTP header. By provisioning an ALB using the AWS Load Balancer Controller, you can route requests to the appropriate microservices based on your application's requirements.Option A suggests using the AWS Load Balancer Controller to provision a Network Load Balancer (NLB). While NLBs can be used for certain scenarios, such as TCP/UDP traffic, they do not provide the same level of application layer routing capabilities as an ALB. Therefore, an ALB is more suitable for routing requests to microservices.Option C suggests using an AWS Lambda function to connect the requests to Amazon EKS. While it is possible to use AWS Lambda with Amazon EKS, it may introduce additional complexity and cost compared to using the built-in capabilities of the AWS Load Balancer Controller and an ALB.Option D suggests using Amazon API Gateway to connect the requests to Amazon EKS. While API Gateway is a powerful service for building and managing APIs, it may introduce additional cost and complexity compared to using the AWS Load Balancer Controller and an ALB for routing requests to the microservices.Therefore, the most cost-effective solution to route incoming requests to the appropriate microservices in an Amazon EKS environment is B: Use the AWS Load Balancer Controller to provision an Application Load Balancer. This solution leverages the capabilities of the AWS Load Balancer Controller and an ALB to provide efficient and cost-effective routing of requests to the microservices in the container application.