Guard posts don't require power, but on the other hand, they need to have a settler assigned to them to generate defense. Note that turrets are autonomous, but larger ones require power to function. Build defensive structures to increase the defense rating.The secondary goal is maximizing the defense stat, to minimize your settlers' exposure to raiders. The primary goal is ensure that they can defend themselves.
Protecting your settlement is a complex affair.