350-501 · Question #35
350-501 Question #35: Real Exam Question with Answer & Explanation
The correct answer is A: All traffic that matches acl10 is allowed without any change to its local-preference. In Cisco IOS XR route-policy, an explicit set local-preference command within an if block, without a subsequent pass or accept action, will result in the matched traffic being allowed but without the local-preference change being applied.
Question
Refer to the exhibit. A network engineer is implementing a BGP routing policy. Which effect of this configuration is true?
Options
- AAll traffic that matches acl10 is allowed without any change to its local-preference
- BAll traffic that matches acl10 is dropped without any change to its local-preference
- CIf traffic matches acl10, it is allowed and its local-preference is set to 300
- DAll traffic is assigned a local-preference of 30O regardless of its destination
Explanation
In Cisco IOS XR route-policy, an explicit set local-preference command within an if block, without a subsequent pass or accept action, will result in the matched traffic being allowed but without the local-preference change being applied.
Common mistakes.
- B. The policy implicitly allows routes that match the
ifcondition when no explicitdropis specified, so traffic will not be dropped. - C. This is incorrect because, without an explicit
passoracceptcommand after theset local-preference 300, thelocal-preferencevalue is not actually applied to the routes, even though they match theacl10condition. - D. The
set local-preference 300action is conditioned on traffic matchingacl10; therefore, it will not be applied to all traffic regardless of its destination.
Concept tested. IOS XR route-policy 'set' action behavior
Topics
Community Discussion
No community discussion yet for this question.