Google Professional Cloud Network Engineer Question 250
Select 3Google Cloud PlatformYou are configuring a custom routing setup for an application hosted on Google Cloud. The application consists of multiple instances in a VPC, each with a specific network tag. Traffic from an external client must be routed based on these tags to ensure it reaches the correct backend instance. You want to create two custom static routes with different priorities to control how traffic is routed based on the tags. Which configuration steps should you take to implement this setup correctly?
- A
Create two static routes, each with a unique network tag, specifying the desired destination CIDR and next hop.
- B
Set the same priority on both routes to ensure even load distribution between the routes.
- C
Assign the appropriate network tags to the instances in the VPC to match the routes' tag-based criteria.
- D
Use the lowest priority value on the route you want to be preferred.
- E
Attach the routes directly to the external client IP to ensure traffic is routed as expected.
Show answer and explanation
Correct answers: A, C, D
Explanation
To implement routing using network tags and priority, you need to create custom static routes specifying network tags, assign these tags to the appropriate instances, and control the route selection using priorities (lower values are preferred). This ensures traffic is routed based on the intended configuration and destination.
- A. Correct.
Correct: To implement routing based on network tags, you must create static routes that specify the destination CIDR, next hop, and a unique network tag. This ensures traffic is routed correctly based on the tags.
- B. Incorrect.
Incorrect: Setting the same priority for both routes does not allow for proper control of traffic flow. Priority determines which route is selected when multiple routes match the same criteria; a lower value is preferred.
- C. Correct.
Correct: Network tags must be assigned to the instances to match the tags used in the routes. This ensures that traffic destined for specific tags is routed to the correct instances.
- D. Correct.
Correct: In Google Cloud, lower priority values take precedence. Setting the lowest priority value on the preferred route ensures it is selected when traffic matches the criteria.
- E. Incorrect.
Incorrect: Routes cannot be directly attached to external client IPs. They are associated with destination CIDRs and next hop configurations within the VPC.