I'll start this off with, I'm not to sure about the hidden mechanics of settlement raids. I have 200 defense on just sanctuary but I get little dipshit raids all the time. It's not even worth looting. So I built a tall tower in the middle of sanctuary and added about 20 rocket turrents. Now any time I'm building something in sanctuary I hear random gunshot, and then a swarm of giant explosive bees screaming in a direction. It awesome