A (G)17 or (G)34 stopping a bear or a mountain lion? Only if in a panic you missed and the ricochet dislodged a precariously perched boulder and it came down and flattened them.
Miss Heidi, of the Glock pistols I'd recommend a soft shooting larger caliber model, perhaps a 10mm G20 or it's longer brother, the G40 with it's 6" barrel. Both share 15 round capacity but I believe that only the G20 is available in the "SF" (Short Frame) model which may suit you better, as the SF model has a reduced grip depth (the length of the grip from front to back) that's intended to help those with smaller hands have a more secure and comfortable grip.
I have a Gen3 G20 with it's OEM 10mm barrel, along with an aftermarket .357SIG conversion barrel for it, and it's very pleasant to shoot in both calibers.
I also had the opportunity to purchase a Gen3 G21SF (45ACP) frame, which I used as a foundation to build a 10mm "longslide" version with a 6.02" barrel, and it too is a pleasure to shoot, with both pistols being more accurate than I.
With Pearce +2 mag extensions, both the G20/G20SF and G21SF frames can carry 17+1 rounds of 10mm, which is more than sufficient for most situations.
So if you think you may find yourself in the midst of either 4 or 2 legged dangerous animals, consider the full sized 10mm Glock. As per my usual suggestion, find a range where you can rent either or both, so you can experience for yourself if you can comfortably use either of these pistol frames in 10mm; if not, try the reduced size G29SF in 10mm, then take it from there.
Gen3 G21SF longslide 10mm on top, Gen3 G20 10mm/.357SIG below it:
Best wishes to you
