Google Professional Cloud Network Engineer Question 416
Single answerGoogle Cloud PlatformYou are designing a load-balanced architecture for a web application hosted on Google Cloud. The application requires traffic to be directed to a backend service that uses multiple virtual machine instances in a managed instance group. You need to configure forwarding rules to ensure traffic is routed properly. Which type of forwarding rule should you configure to meet this requirement?
- A
Global forwarding rule
- B
Regional forwarding rule
- C
Internal forwarding rule
- D
Internal managed forwarding rule
Show answer and explanation
Correct answer: A
Explanation
To route traffic to a backend service with multiple VMs in a managed instance group, you need a global load balancer. Global forwarding rules allow you to direct traffic to a global load balancer that can distribute requests across multiple regions. This ensures that your application is highly available and scalable.
- A. Correct.
A global forwarding rule is used when you need to route traffic to a global load balancer, which can distribute traffic across multiple regions. This is suitable for a web application hosted on multiple VMs across regions.
- B. Incorrect.
A regional forwarding rule is used for regional load balancers. However, the question specifies a global application, so this is not the correct option.
- C. Incorrect.
An internal forwarding rule is used for internal load balancing (within a private network) and is not applicable for a publicly accessible web application.
- D. Incorrect.
There is no such thing as an 'internal managed forwarding rule' in Google Cloud, making this option invalid.