If BGP has multiple potential routes to a destination, how does it choose which one to install in the RIB? I'm glad you asked!
Don't panic - at the CCNP level, you'll only need to know up to step 4.
-
Next Hop Accessibility
Like IGPs, a route will never be installed in the route table if the next-hop router is inaccessible.
Unlike IGPs, this might not be obvious because the next-hop BGP router might not be directly connected.
Next-hop accessibility is the "zeroth" step - depending on who you ask.