exam questions

Exam ANS-C00 All Questions

View all questions & answers for the ANS-C00 exam

Exam ANS-C00 topic 1 question 31 discussion

Exam question from Amazon's ANS-C00
Question #: 31
Topic #: 1
[All ANS-C00 Questions]

Your company has set up AWS Direct Connect to connect on-premises to an Amazon VPC instance. Two Direct Connect connections terminate at two different
Direct Connect locations. You are using two routers, R1 and R2, at your end (one of each Direct Connect connection). R1 and R2 do NOT have connectivity between them. Both routers advertise the same routers over BGP to the VGW. You have a stateful firewall on each router. The routers drop some of the traffic coming from the VPC.
Which two actions should you take to fix this problem? (Choose two.)

  • A. Use BGP AS prepend attribute to prepend additional AS numbers while advertising routers from R1 to VGW.
  • B. Use BGP local preference attribute to assign R1 to a lower local preference number than R2.
  • C. Use BGP local preference attribute to assign R1 a higher local preference number than R2.
  • D. Use BGP MED attribute to assign a higher MED value to the routes advertised R1 to VGW.
  • E. Use BGP MED attribute to assign a higher MED value to the routes advertised from R2 to VGW.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
HazemYousry
Highly Voted 3 years, 7 months ago
Answer is A & B
upvoted 15 times
clooudy
3 years ago
Answer: A and D as explained by @sapien45
upvoted 1 times
...
khchan123
3 years, 2 months ago
B is wrong as local preferences not working because R1 and R2 are not connected. It's A & D.
upvoted 1 times
...
sapien45
3 years, 2 months ago
wouahh ... most voted answer is completely wrong. Internal BGP (IBGP) sessions use a metric called the local preference, which is carried in IBGP update packets in the path attribute LOCAL_PREF That means how do I manipulate BGP to benefit R2 route. Answer : A&D.
upvoted 7 times
PorkChop1999
1 year, 1 month ago
That would be true if you have connectivity between R1 and R2. Otherwise you can't carry updated between them.
upvoted 1 times
...
Royce341
3 years, 1 month ago
100% It's A & D
upvoted 2 times
...
...
...
eeghai7thioyaiR4
Highly Voted 3 years, 6 months ago
This is an aweful question .. There is no IGP, no connectivity between R1 and R2 So, each one have a single path to AWS, there is no need to control the routes there However, from the AWS side, we see both subnets, from R1 and from R2 If both R1 and R2 uses the same IP ranges, it will never works, because the trafic will go to either R1 or R2, but not both (or both via ECMP, that will break everything) If R1 and R2 does not use the same ranges, each one should advertise different prefixes, this makes the whole question useless (it will work as-is) So, with two actions should I take to fix the problem ? None of those
upvoted 10 times
...
arhelp
Most Recent 1 year, 4 months ago
First off, the firewall is stateful. It will see the traffic leave and have a return route for it. The reason packets are dropping is because of asymmetric routing. Traffic leaving one router and returning on the other router. Remember the routers are not connected so they don't know about traffic leaving router 1 and returning on R2. Therefore, the answer can't be A. If you prepend R1 then R2 will receive incoming routes. A also says while advertising routes from R1. So A is saying R1 is advertising routes and R1 is also prepending. So traffic leaves R1 and returns on R2. This is creating the drop in traffic. To fix the problem you have to send traffic out R1 and receive traffic back on R1 for the stateful firewalls not to drop return traffic. B makes R1 primary on sending out traffic so D will also return traffic on R1. The problem is the answer could be BD or CE.
upvoted 1 times
arhelp
1 year, 4 months ago
Being that AS prepends are preferred by AWS, the answer will indeed be A & C. A will make R2 primary for return traffic so C will also make R2 primary for sending out traffic.
upvoted 1 times
...
...
PavanKushwah123
2 years, 4 months ago
Correct Answer AC
upvoted 1 times
...
tonytam1991
2 years, 5 months ago
A, D Question mentioned no connectivity between "R1 and R2", so this is an asymmetric route issue. Local preference is useless in on-premise router because they have a single route to AWS so no need additional route selection. We could use AS path prepend and assign a higher MED value on R1 bgp policy to make AWS only install R2 routes to fix the issue. Remarks: Local preference is only used for route selection for inbound route. E.g. If we only have a router and perform BGP peering with 2 DX location which advertised same VPC routes, in this case we can assign a higher local perf value on your perferred routes for outbound routing selection from on-prem to AWS.
upvoted 1 times
...
Ramyras
2 years, 6 months ago
it is really tricky one. Via AS_PATH we telling AWS to use R2 - answer A fo sure. And what each router do with routes received from AWS - they advertises it to some local networks IGP protocol to propagate it to the remain on-prem inrastructure. And at the same time R1 and R2 receiving the same AWS routes directly from AWS and from IGP. it means that now each on prem router localy must decide whitch route use to send teaffic to AWS. At this point on R1 we need to configure higer local pref for routes received via IGP and as result R1 will send all AWS dedicated traffic to R2. Answer C
upvoted 1 times
...
cdeavila
2 years, 7 months ago
someone explain to me please, why you want to have R2 as the preferred route, what is the reason why we discard R1 as a route, the question says that both routers drop the packets, because R1 is the "bad guy" someone who clear that part up for me.
upvoted 1 times
Ramyras
2 years, 6 months ago
when you have 2 equal routers to avoid asymetric routing your should ensure that both way traffic will go to the same router. Why R1 - it doesn't matter whitch, just chosen one of two
upvoted 1 times
...
...
CCNPWILL
2 years, 8 months ago
Selected Answer: AD
A and D ... I am CCNP :P
upvoted 3 times
squeeze_talus0y
2 years, 8 months ago
CCIP here and I agree :) These are the two options we employ to tell to the remote AS which path we prefer for the traffic coming from them. Fun fact is that we'll still have asymmetric routing since both R1 and R2 originate traffic to AWS for the learned prefixed from DX. Local pref would solve the problem but the question states there is no connectivity between R1 and R2.
upvoted 1 times
...
...
clooudy
3 years ago
Selected Answer: AD
Answer: A and D A--use As prepend when advertising routes from R1 to VGW ( this will make inound traffic always pick R2) D- advertise routes from R1 with higher MED to VGW ( this will make inound traffic always pick R2)
upvoted 1 times
...
Cyril_the_Squirl
3 years, 6 months ago
A is Correct. -- Config from On-prem side making R2 prefixes more preferred. D is Correct. -- Achieves the same thing as A through MED, making R2 preferred path. B & C are wrong -- R1 & R2 are not talking to each other, Loc_Pref is a local non-transitive attribute that doesn't cross AS, so it's useless to configure it in this case. D -- Incorrect. -- Higher MED makes R2 less preferred, failing at contradicting the first BGP attribute in this case AS_PATH. A & D are Correct.
upvoted 6 times
...
NSF2
3 years, 6 months ago
From BGP perspective, AS path prepend and MED used for the same purpose which is to influence incoming traffic, where as local preference is used to influence outgoing traffic. LP doesn’t work here because no iBGP peers, also no point using MED and AS path both. A is correct but not sure other answers.
upvoted 1 times
...
Huy
3 years, 6 months ago
We can drop B,C because Local preference is sent to all internal BGP routers in an AS not external router. A is one option to prefer route. The second is MED which higher value is preferred. In this scenario, they prefer R2. https://aws.amazon.com/blogs/networking-and-content-delivery/creating-active-passive-bgp-connections-over-aws-direct-connect/ A & E are correct.
upvoted 4 times
...
Huntkey
3 years, 6 months ago
Reading this again, I think the question may want to ask what the two options are, not two actions. There is NO connection between R1 and R2. That implies you do NOT have to manipulate any attribute for picking which one to use for outgoing traffic to the AWS. You just make sure they all come back on one path/router. In this case, both A and D can do the work, assuming the outgoing traffic somehow decides to use R2 to access AWS
upvoted 1 times
...
Huntkey
3 years, 6 months ago
MED is supported on the private and transit VIF but not on the public VIF according to https://aws.amazon.com/blogs/networking-and-content-delivery/creating-active-passive-bgp-connections-over-aws-direct-connect/. Coming from the Cisco world, I know that the MED is only compared for the prefix origined from the same ASN. If site A advertise it with 65001 and site B with 65002, then the MED is ignored. On Cisco platform, you configure "bgp always-compare-med" to force the comparison. I can't say if it is true for AWS or not, neither do I have an environment to test it. With these uncertainty, I am leaning more toward AB.
upvoted 1 times
...
jason2009
3 years, 6 months ago
After some thought, I believe it's AD. Ideally, we should follow the evaluation sequence, i.e. local pref, AS Appending and MED. The question presented here is Active-Active asymetric routing, as the main concern is the traffic return from VPC is dropped due to stateful firewall, we need to focus on inbound tunning. The problem with Local Pref cannot be exchanged beyond iBGP, i.e. you cannot influence eBGP's local pref. In this case, you cannot directly assign a local preference to AWS AS. That is something impossible. (It's important to note that you can indirectly give local pref in AWS AS through BGP communities). MED is supported in AWS DX and as a last restort it should work. BTW it seems this exam is full of these type of questions - ask you to pick the best options among a bunch of bad options and mislead you of very minor details in an answer that seems to be the optimal one that you should use in practice. (In this question, mislead you to select local pref to *directly* fine tune inbound traffic which is impossible).
upvoted 6 times
walkwolf3
3 years, 6 months ago
Very detailed explanations, go with AD.
upvoted 2 times
...
...
jason2009
3 years, 6 months ago
Local Pref – This path attribute is considered right at the start of the best-path algorithm, and as such, is an optimal tuning parameter! This is used for both Inbound and Outbound tuning – higher values are preferred. AS_Path – This path attribute is a concatenation of all the AS numbers the advertisement has passed through. It is used as a loop avoidance mechanism on the one hand and as an indication of distance on the other. This is used for both Inbound and Outbound tuning – shorter AS_Path lengths are preferred. MED – This path attribute uses a metric as well. MED is typically used by an AS that is multi-homed to instruct an external AS (that it is peered with) that it has a preferred entry point for a particular network address block. This can be used for inbound tuning – lower metric values are preferred.
upvoted 1 times
...
MaikM
3 years, 7 months ago
Here is my take on it: We want to configure the network to use symmetric path, i.e. incoming and outgoing traffic use the same path. Incoming traffic from AWS: Answer A. It will force incoming traffic to use R2 Outgoing traffic to AWS: Answer B. Assigning lower local preference on R1, will force outgoing traffic via R2 (higher LR wins) Correct answer are then A and B Am I right?
upvoted 1 times
Ishu_awsguy
3 years, 6 months ago
There is no connection bw R1 and R2 so local preference is out of question
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago