Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Network Engineer All Questions

View all questions & answers for the Professional Cloud Network Engineer exam

Exam Professional Cloud Network Engineer topic 1 question 44 discussion

Actual exam question from Google's Professional Cloud Network Engineer
Question #: 44
Topic #: 1
[All Professional Cloud Network Engineer Questions]

In order to provide subnet level isolation, you want to force instance-A in one subnet to route through a security appliance, called instance-B, in another subnet.
What should you do?

  • A. Create a more specific route than the system-generated subnet route, pointing the next hop to instance-B with no tag.
  • B. Create a more specific route than the system-generated subnet route, pointing the next hop to instance-B with a tag applied to instance-A.
  • C. Delete the system-generated subnet route and create a specific route to instance-B with a tag applied to instance-A.
  • D. Move instance-B to another VPC and, using multi-NIC, connect instance-B's interface to instance-A's network. Configure the appropriate routes to force traffic through to instance-A.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
gless
Highly Voted 3 years, 11 months ago
It is B for me: https://cloud.google.com/vpc/docs/routes#subnet-routes Custom static routes can apply to all instances or specific instances. Static routes with a tag attribute apply to instances that have that same network tag. If the route doesn't have a network tag, the route applies to all instances in the network.
upvoted 21 times
AzureDP900
1 year, 12 months ago
Yes, B. Create a more specific route than the system-generated subnet route, pointing the next hop to instance-B with a tag applied to instance-A.
upvoted 1 times
...
...
3fd692e
Most Recent 1 month, 2 weeks ago
Selected Answer: B
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
upvoted 1 times
...
thewalker
7 months ago
Selected Answer: A
To force instance-A in one subnet to route through a security appliance, called instance-B, in another subnet, you need to create a more specific route than the system-generated subnet route. The next hop of the more specific route should point to instance-B with no tag. Here is an example of how to create a more specific route than the system-generated subnet route: gcloud compute routes create my-route \ --destination-range=10.0.0.0/24 \ --next-hop-instance=instance-b \ --next-hop-instance-zone=us-central1-a \ --priority=100 This command will create a route with a destination range of 10.0.0.0/24 and a next hop of instance-B. The priority of the route is set to 100, which is higher than the priority of the system-generated subnet route. This means that the more specific route will be used to route traffic from instance-A to instance-B.
upvoted 1 times
thewalker
7 months ago
The other options are incorrect because: B. Create a more specific route than the system-generated subnet route, pointing the next hop to instance-B with a tag applied to instance-A. This is not necessary. You do not need to apply a tag to instance-A in order to force traffic to route through instance-B. C. Delete the system-generated subnet route and create a specific route to instance-B with a tag applied to instance-A. This is not necessary. You can simply create a more specific route than the system-generated subnet route. D. Move instance-B to another VPC and, using multi-NIC, connect instance-B's interface to instance-A's network. Configure the appropriate routes to force traffic through to instance-A. This is a more complex solution than simply creating a more specific route. Therefore, the best option is to create a more specific route than the system-generated subnet route, pointing the next hop to instance-B with no tag.
upvoted 1 times
...
...
crg63
1 year, 1 month ago
Selected Answer: D
NOT B, Can't create a more specific route than the subnet route. https://cloud.google.com/vpc/docs/routes#subnet-static-interactions
upvoted 3 times
desertlotus1211
9 months, 1 week ago
How much work do you think is required to move an appliance that is already in use? Alot compared to creating a route tailored for the requirement
upvoted 1 times
...
...
didek1986
1 year, 3 months ago
Selected Answer: B
It is B
upvoted 1 times
...
tnar140
1 year, 7 months ago
the answer is D as you can not create a more specific route than a subnet default route.
upvoted 3 times
desertlotus1211
1 year, 6 months ago
this answer makes no sense... force traffic TO instance A? wrong direction and wring answer.
upvoted 1 times
...
desertlotus1211
9 months, 1 week ago
yes you can
upvoted 1 times
...
...
pk349
1 year, 10 months ago
It is B for me: https://cloud.google.com/vpc/docs/routes#subnet-routes Custom static routes can apply to all instances or specific instances. Static routes with a tag attribute apply to instances that have that same network tag. If the route doesn't have a network tag, the route applies to all instances in the network.
upvoted 1 times
...
pfilourenco
1 year, 11 months ago
Selected Answer: B
B: https://cloud.google.com/vpc/docs/routes#instancerouting
upvoted 2 times
...
[Removed]
2 years, 1 month ago
Selected Answer: B
A more specific route with tag will have higher rank of routes
upvoted 3 times
...
Mr_MIXER007
2 years, 1 month ago
Selected Answer: D
D DDDDDDDDDDDDDD
upvoted 1 times
gcpengineer
1 year, 3 months ago
can not be the ans
upvoted 1 times
...
...
small1_small2
2 years, 3 months ago
Selected Answer: B
Answer have to be B https://cloud.google.com/vpc/docs/routes#instancerouting
upvoted 2 times
...
Raz0r
2 years, 4 months ago
Selected Answer: C
Right answer MUST be C! You can not create a more specific VPC route, it's stated right here: https://cloud.google.com/load-balancing/docs/internal/troubleshooting-ilb#invalid-dest-range
upvoted 1 times
Raz0r
2 years, 4 months ago
Mods please delete my comment. I have tested the steps in answer B and this will work but only if both VMs had IpForward enabled at the time of creation. Right now this is the warning I'm getting at the route, after testing scenario from answer B: "Your source and destination VM instances must have canIpForward enabled." The route is created successfully, this warning is just attached to it with a small warning symbol.
upvoted 5 times
...
...
papaliu
2 years, 5 months ago
OK for B
upvoted 1 times
...
LEGCPLele
2 years, 8 months ago
The ANSWER should be D, You can not put a third part appliance(firewall) within a VPC, it has to be 2 seperate VPC and with a multi nic VM this scenario is achievable.
upvoted 4 times
...
desertlotus1211
2 years, 11 months ago
Answer is D. This is a typical Arch. Design for shared VPC host project where you add your Security Appliance to control traffic between service projects [ E-W traffic]
upvoted 1 times
desertlotus1211
2 years, 11 months ago
Sorry, Answer D is incorrect... That answer says: ...Configure the appropriate routes to force traffic through to instance-A. Instance A is NOT the Security appliance.. unless its a typo, and it meant to say Instance B.
upvoted 2 times
...
...
matmuh
2 years, 11 months ago
Answer is D. We implement this scenario with palo-alto firewall. First of all you can't write a more specific route in the same vpc.
upvoted 2 times
desertlotus1211
2 years, 11 months ago
But Answer D shows the Instance A as the Security appliance, not Instance B... The questions ask for traffic to go from Instance-A to Instance-B... Answer D has it the other way around...
upvoted 1 times
...
...
seddy
3 years, 6 months ago
The answer is 200 % D by elimination method. 1)It cannot be A or B because you are not allowed to create a more specific route than subnet route 2)You are not allowed to remove a subnet route. The only way to do so is by deleting the subnet itself. Thus, by elimination the answer is D.
upvoted 3 times
JoeShmoe
3 years, 6 months ago
Agree. Its D for the reasons you give. Its a process of elimination question and in reality east west routing via firewall appliance would be across VPC's not subnet. Subnets are segreated by firewall rules not routes
upvoted 1 times
EranSolstice
3 years, 1 month ago
Not sure, this is circular logic, after moving B to a different VPC, which route will you create to force routing of instance-A through instance-B without running into the same limitation of inability to define a more specific route then the system generated subnet route ? Having security appliance that use multi-nic for east-west subnet isolation is a good pattern. But to achieve this you will need to move more then just instance-b to the other VPC.
upvoted 1 times
...
...
densnoigaskogen
3 years, 6 months ago
B should be the answer. It's question about defining static route. The scenario is to require traffic from instance-A to be routed VIA instance-B in a different subnet, thus, instance-B's subnet is not the destination. "No other route can have a destination that matches or is more specific (has a longer subnet mask) than the destination of a subnet route." --> only applies when you try to set a destination CIDR within the subnet range. For example,if the 10.10.10.0/24 is the subnet, you can not define a static route which has destination ip range as 10.10.10.0/25. When creating the static route for this question, you can select an instance (B) as next-hop, and use tag applied to instance-A to limit this static route to be only applicable for Instance-A.
upvoted 8 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...