Google Professional Cloud Network Engineer Question 253
Single answerGoogle Cloud PlatformYou are designing a Google Cloud VPC for a multi-tier application. The application has a frontend service that must route traffic to a backend service. To achieve this, you need to configure custom routes that ensure traffic from the frontend instances takes a specific path to reach the backend instances. The frontend and backend instances are in different subnets, and you want to ensure that only frontend instances can use the custom route. How can you achieve this?
- A
Create a custom static route with a network tag associated with the frontend instances and apply it to the route.
- B
Create a custom static route with a network tag associated with the backend instances and apply it to the route.
- C
Set the priority of the custom route lower than the default route to ensure it is used first.
- D
Set the priority of the custom route higher than the default route to ensure it is used first.
Show answer and explanation
Correct answer: A
Explanation
To control which instances use a specific route, network tags can be applied to routes and instances. In this scenario, applying a network tag to the frontend instances and associating the same tag with the custom route ensures that only the frontend instances can use the route. Route priority determines precedence among routes when multiple routes match, but it does not control instance access to the route.
- A. Correct.
This is correct. By associating a network tag with the frontend instances and applying it to the custom route, only those instances can utilize the route.
- B. Incorrect.
This is incorrect. Associating the network tag with the backend instances does not restrict frontend instances to use the route or ensure proper routing.
- C. Incorrect.
This is incorrect. Lower priority values represent higher precedence in routing, but priority alone does not restrict route usage.
- D. Incorrect.
This is incorrect. Higher priority values represent lower precedence in routing, and this would make the route less likely to be used.