Google Professional Cloud Network Engineer Question 263
Single answerGoogle Cloud PlatformYou are configuring VPC Network Peering between two networks: 'Network-A' and 'Network-B'. Network-A has custom routes that you want to make available to Network-B. However, Network-B should only import specific custom routes based on a defined policy. You have already created the required route export policy in Network-A. What should you do next to ensure only the desired routes are imported into Network-B?
- A
Enable custom route import in Network-B and attach a route import policy to the peering connection in Network-B.
- B
Enable custom route export in Network-B and attach a route export policy to the peering connection in Network-A.
- C
Enable custom route import in Network-A and attach a route import policy to the peering connection in Network-B.
- D
Enable custom route import in Network-B and ensure Network-A has custom route export enabled.
Show answer and explanation
Correct answer: A
Explanation
To control route sharing in VPC Network Peering, you must enable custom route import in the importing network and attach the appropriate import policy to restrict which routes are received. In this scenario, Network-B is the importing network, so you need to enable custom route import in Network-B and attach the route import policy to its peering connection.
- A. Correct.
Correct. To control which routes are imported into Network-B, you need to enable custom route import in Network-B and attach the route import policy to the peering connection in Network-B.
- B. Incorrect.
Incorrect. Export policies in Network-B are irrelevant since the requirement is to import specific routes from Network-A into Network-B.
- C. Incorrect.
Incorrect. Custom route import needs to be enabled in Network-B, not in Network-A, to control which routes are imported into Network-B.
- D. Incorrect.
Incorrect. While enabling custom route export in Network-A is necessary, it does not fulfill the requirement of filtering imported routes in Network-B without attaching an import policy.