Google Professional Cloud Network Engineer Question 433
Single answerGoogle Cloud PlatformYour company needs to forward TCP traffic on port 8080 to a backend service hosted on a Compute Engine instance. The solution must not use a load balancer but still ensure traffic forwarding to the instance's private IP address. How should you configure protocol forwarding to meet this requirement?
- A
Create a forwarding rule with a target instance and specify the TCP port 8080.
- B
Set up a global external HTTP(S) load balancer and configure a backend service pointing to the instance.
- C
Configure a target pool and use it in a forwarding rule to direct traffic to the instance.
- D
Create a forwarding rule with a target VPN gateway for TCP port 8080.
Show answer and explanation
Correct answer: A
Explanation
Protocol forwarding is used to forward traffic directly to a target instance without using a load balancer. In this scenario, you can create a forwarding rule for TCP port 8080 and specify the target instance to handle the incoming traffic. This approach avoids the need for load balancers and satisfies the requirement to forward traffic to the instance's private IP address.
- A. Correct.
This is the correct approach. Protocol forwarding allows traffic to be forwarded directly to a target instance. You can create a forwarding rule for TCP traffic on port 8080 and specify the target instance to handle the traffic.
- B. Incorrect.
This option is incorrect because a global external HTTP(S) load balancer is not needed for this scenario. The requirement specifically states not to use a load balancer.
- C. Incorrect.
This option is incorrect because target pools are used with legacy HTTP load balancers, which is not applicable here. Protocol forwarding directly targets an instance without a load balancer.
- D. Incorrect.
This option is incorrect because a target VPN gateway is used for VPN connections, not for direct protocol forwarding to a Compute Engine instance.