A network engineer is configuring a route map for BGP policy. The engineer wants to match routes that originate from AS 65001 and have a community value of 100:200. The route map should then set the local preference to 200. Which configuration snippet accomplishes this?
This configuration defines an AS-path access list to match routes originating from AS 65001 (using the regular expression ^65001$) and a community list to match the community 100:200. The route map then matches both conditions and sets the local preference to 200. This fully satisfies the requirement.
Why this answer
To match routes from AS 65001 with community 100:200 and set local preference, the configuration must include both an AS-path access list and a community list, and apply both matches in the route map. The correct snippet defines the AS-path access list with the regex ^65001$ to match routes originated in AS 65001, defines a standard community list to match 100:200, and then uses both in the route map with the set clause.
Exam trap
The trap here is forgetting to define the community list or the AS-path access list, or using a regex that matches AS 65001 anywhere in the path rather than as the origin.