I have a free roaming Rottweiler. Here he is watching Top Gear with me. (The real Top Gear, not the current one. Now we watch The Grand Tour on Amazon.)
If someone breaks in, I'm not hiding in my bedroom while Randy deals with it until the cops come and shoot him.
I have my trusty 12 gauge pump. Randy and I will sort things out.
I think a 9mm carbine would also do a first rate job.