Google Professional Cloud Network Engineer Question 254
Single answerGoogle Cloud PlatformYour company is migrating to Google Cloud and requires specific routes to be applied to different instances based on their role. For example, database instances must use a specific next hop while web servers use another. You decide to implement this by using network tags and route priorities. How should you configure this setup?
- A
Create separate custom static routes for each network tag, specifying different next hops and assigning higher priority to database routes.
- B
Use a single custom static route with multiple next hops and assign it to all instances, relying on network tags to control traffic.
- C
Apply network tags to the instances, create custom static routes for each tag with the same priority, and specify different next hops.
- D
Assign network tags to instances and create custom static routes for each tag, ensuring routes for database instances have a lower priority value than web server routes.
Show answer and explanation
Correct answer: D
Explanation
To implement routing for specific instances using network tags and priority, you must assign network tags to the instances and create custom static routes for each tag. Each route must specify the desired next hop, and priority values should be used to influence the preferred route. Since lower priority values take precedence, database routes should have a lower priority value than web server routes for deterministic routing behavior.
- A. Incorrect.
This approach is incorrect because while it creates separate routes for each tag, assigning higher priority would result in conflicting routes where the one with the higher value is less preferred.
- B. Incorrect.
This is incorrect because Google Cloud does not support using a single static route with multiple next hops for different tags. Each route must have a unique next hop.
- C. Incorrect.
This approach is incorrect because routes with the same priority will not provide deterministic behavior when multiple routes match the traffic. Priority values must be used to influence the preferred route.
- D. Correct.
This is the correct approach because assigning network tags to instances and creating routes with different priorities ensures deterministic routing behavior. Lower priority values (higher precedence) will determine the preferred route.