ANS-C01 Question 89
Single answerYou are designing an application that requires a load balancer to route traffic to multiple backend targets. The application uses a custom protocol that operates on Layer 4. Which load balancer target group configuration should you choose to ensure compatibility with your application?
- A
Target type: Instance, Protocol: HTTP
- B
Target type: IP, Protocol: TCP
- C
Target type: GENEVE, Protocol: UDP
- D
Target type: Instance, Protocol: HTTPS
Show answer and explanation
Correct answer: B
Explanation
To support a custom protocol operating on Layer 4, the load balancer target group must be configured to use the TCP protocol, as it is designed for Layer 4 traffic. Additionally, using 'IP' as the target type allows the load balancer to route traffic directly to specific IP addresses, which is often required for applications with custom protocols. Other configurations like HTTP, HTTPS, or GENEVE are unsuitable because they operate on different layers or are tailored for specific use cases.
- A. Incorrect.
HTTP operates at Layer 7, which is not compatible with a custom Layer 4 protocol. Additionally, 'Instance' as a target type is not ideal for direct Layer 4 traffic routing.
- B. Correct.
TCP operates at Layer 4 and supports custom Layer 4 protocols. Using 'IP' as the target type allows the load balancer to route traffic directly to an IP address, making it suitable for this scenario.
- C. Incorrect.
GENEVE is a tunneling protocol that operates at Layer 3. It is not suited for routing custom Layer 4 protocols directly.
- D. Incorrect.
HTTPS operates at Layer 7 and is specific to secure web traffic. It does not support custom Layer 4 protocols. Additionally, using 'Instance' as a target type limits flexibility for IP-based routing.