Professional Cloud Network Engineer Practice Questions

Google Cloud Professional Cloud Network Engineer exam preparation

Professional Cloud Network Engineer practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 120 minutes.

Professional Cloud Network Engineer free question 3 / 10 · Domain 2: Implementing a VPC network

Two policy-based routes match the same packet. One has priority 100 and a /16 destination range; the other has priority 500 and a /24 destination range. In Google Cloud, a lower priority value means a higher priority. Which route does Google Cloud use?

  1. Both routes, with their next hops sharing traffic through ECMP
  2. The route whose source range has the shorter prefix
  3. The route with priority 100 and the /16 destination
  4. The route with priority 500 and the more specific /24 destination
Show the answer and explanation

Answer: C

Why this is correct
The VPC routes overview explains that Google Cloud evaluates policy-based routes solely by their priority, starting with the highest priority. Policy-based routes do not use longest-prefix matching, as the policy-based routes page notes. The priority 100 route is evaluated first and, because it matches, the lower-priority route is disregarded even though its destination is narrower.

Why the other options are wrong
"The route with priority 500 and the more specific /24 destination" … A narrower destination helps in ordinary route selection, but policy-based routes do not use longest-prefix matching, so the /24 gives this route no advantage.
"Both routes, with their next hops sharing traffic through ECMP" … ECMP is not used between matching routes of different priorities. The lower-priority matching route is disregarded.
"The route whose source range has the shorter prefix" … The length of the source prefix does not rank policy-based routes. They are ordered by priority.

Key point
Keep policy-based route evaluation separate from normal route lookup. Narrowing a range does not raise the priority of a policy-based route.

Go to the Professional Cloud Network Engineer practice app (10 free questions; purchase unlocks all questions)

See the full practice set