AWS Certified Advanced Networking - Specialty Exam Question: Route Selection for IP Address 10.1.0.254

Route Selection for IP Address 10.1.0.254

Prev Question Next Question

Question

Your company has the following Direct Connect and VPN Connections Site A - VPN 10.1.0.0/24 AS 65000 65000 Site B - VPN 10.1.0.252/30 AS 65000 Site C - Direct Connect 10.0.0.0/8 AS 65000 Site D - Direct Connect 10.0.0.0/16 AS 65000 65000 65000 You are trying to connect to an IP address of 10.1.0.254

Which of the following route will be chosen?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - B.

AWS uses the most specific route in your route table that matches the traffic to determine how to route the traffic (longest prefix match)

Hence the one that matches this is Site.

B.Option A,C and D are all incorrect since the shortest prefix would be chosen.

For more information on route table priority, please visit the below url.

http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html#route-tables-priority

To determine which route will be chosen for an IP address of 10.1.0.254, we need to evaluate the routing tables for each of the connections.

Site A: VPN 10.1.0.0/24 AS 65000 65000

This route covers the entire 10.1.0.0/24 subnet, which includes the IP address 10.1.0.254. Therefore, Site A is a candidate for the route.

Site B: VPN 10.1.0.252/30 AS 65000

This route only covers the specific IP address range of 10.1.0.252/30, which does not include 10.1.0.254. Therefore, Site B is not a candidate for the route.

Site C: Direct Connect 10.0.0.0/8 AS 65000

This route covers the entire 10.0.0.0/8 subnet, which includes the IP address 10.1.0.254. Therefore, Site C is a candidate for the route.

Site D: Direct Connect 10.0.0.0/16 AS 65000 65000 65000

This route covers the entire 10.0.0.0/16 subnet, which includes the IP address 10.1.0.254. Therefore, Site D is a candidate for the route.

Now we need to evaluate which of the candidate routes has the longest prefix match. The longest prefix match is the route that matches the most significant bits of the IP address. In this case, both Site C and Site D have a prefix length of /8 and /16 respectively, which are longer than the /24 prefix length of Site A.

Therefore, the route chosen will be either Site C or Site D, depending on which connection has the lowest AS path length. The AS path length is the number of AS numbers in the path to the destination. In this case, Site C has an AS path length of 1, while Site D has an AS path length of 3.

Therefore, the final answer is that the route chosen will be Site C, as it has the longest prefix match and the lowest AS path length.