Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 44 of 77
Free Preview · 77 of 256 · questions 1–77 of 256 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
The best solution is B: Create a custom route with a more specific route than the system-generated one, and use a tag applied to instance-A. This ensures that only instance-A's traffic routes through instance-B without affecting other traffic within the subnet.
The answer is B. Lots of discussion about whether you can create a more specific route and whether the tag is necessary. The answer is somewhat in the question: Yes, use a tag applied to instance-A because it allows you to apply the more specific route to just the instance(s) with that tag. The question doesn't say ALL instances in the subnet, just instance-A. As for creating a more specific route: Yes, you can do this and while the documentation is somewhat confusing on this topic, you only need to focus on the static route documentation to be sure: https://cloud.google.com/vpc/docs/static-routes
At first, I agreed that the answer was A. However, on further reflection, I think this is a "Gotcha" question. While the question doesn't specify "Only instance-A," it also doesn't specify the entire subnet. Answer A would route the *entire subnet*, including instance-A, while Answer B could route *just instance-A.* tl;dr: this is a badly worded question that could be answered multiple ways.