Inside the house for close defence, when you have a lone target and you are in danger!
A Pistol would always be closest to me, on the table next to my bed. I would use that if I were in imminent [Like someone had just walked into my bedroom type thing brandishing a gun...] danger [And the law allowed me...].
An AK-47 would truly be my last resort. Because of the power of that Baby... Because of the way my current residence is built if I had an AK-47 I would be fairly bloody careful it didn't kill anyone in my house...
But come on... All I think for a burglar would just be the sight of one...
Is that the door I hear slamming?