Under perfect circumstances any homeowner would be able to convince a perpetrator of home invasion to back off and leave. Perfect circumstances are as few and far between as real photos of Bigfoot however.
To my way of thinking there are a few things that I have to do as a responsible gun owner.
(1) I have to be extremely safe and incredibly proficient with my firearms especially the ones I set aside for the role of being the "go to" weapon for protection. That means I know everything there is to know about the gun. I can take it apart and put it together in the dark if need be. And most importantly I shoot it enough in varied positions that muscle memory and habit will be able to fight through the rush of surprise and adrenaline that will undoubtedly be there if worst comes to worst.
(2) Make sure that my guns are as secure as I can possibly make them and that my family is on the same page with me regarding where the guns are, who can access them, and how to use them.
(3) Mentally prepare myself for the possibility that I may have to kill someone when they cross a certain threshhold and be certain that the threshhold corresponds to the law.