While I get what they were trying to do with hinting at development for Andrea (via spoilers from the comics here), the character's actions were about as dumb as you can get, and hopefully Rick pistol-whipped her when they got back to the RV. If she was going to take that shot (into the sun, without confirming the target, basically first rule of firing a gun, make sure you want to kill the thing on the other end before you pull the trigger), then she should have done it while the guys were still far away. At ~200 yards, she's the luckiest marksman around that she didn't plug one of the guys running out there. Lucky to hit anything at all, but nice shot, i guess?
Once the guys were close, you don't take that shot at ALL unless you can see it just mowing down the good guys, and you write them all off as dead.
Cool that they want to develop her into a super-sniper like the comics, but in-universe, none of the characters would let her even LOOK at a gun for a long time after the shit she just pulled.
-Didn't know for sure what she was shooting at
-Shot into a group of friendlies
-At extreme range, so can't be sure where the bullet is going
-Didn't need to shoot at all, as 4 guys with hand weapons went to handle it, and no need to fire a gun and ring the zombie dinner bell unless you have to.
No guns for you...