I am so lucky that my dog has zero prey drive. I knew this from when he was a puppy and I introduced him to some chickens and he just nudged his nose towards them smelling them. My chickens know who he is, and when another dog visits, they all warn each other of the uncertain intruder.
My dog has shown interest in the huge developing bunny population, but I've been able to correct him and tell him to stop whenever he heads their direction. Ordinarily, I might be ok with him hunting the occasional rabbit (to keep the population under control), but I don't want him getting carried away and following them across the road if they take that direction. Now, he just takes a few steps in their direction. I honestly think he just wants to say hello
A lot of is is teaching and vigilance. I taught him to be scared of snakes as well and now if one appears, he just watches it.
I guess I am lucky and I definitely would not recommend this direction without a lot of training and trust building. There is a benefit to having a dog around my free rangers as he will protect his chicken buddies.