It all depends on the state of the game, position, chip-stack and many other things should determine when you push all-in or call an all-in from other players, I have shoved all-in with many hands and won, even pocket Deuces.
At the end of the day any pocket pair is better than an A/K or A/Q etc, simply because you are holding a pair, and they are not, So in reality they have to hit the Flop, Turn or River to beat you, you don't.
If you can afford to lose 5 or 6 BBs when someone shoves all-in with A/K then any pocket pair is favorite in my book, and I will call even with Deuces, In a live game once I raised UTG with a pair of 8s and facing an all-in from the Button I counted my chips to see if I was calling, I had him covered by about three times as many chips, so I called.
The guy on the button smiled as he turned over Aces and I smiled back saying good luck and turned my 8s over, He thought I was being sarcastic and took offence by asking me if I was trying to be funny, and I said "far from it, I have a pair and you have a pair, Its a coin toss and anyone can win" I made trips and took him out of the game. That's Poker!
Just because you have the best hand Pre-flop, does not mean you will have the best hand on the River, It happens on-line as well as in Live games, But I was willing to risk a third of my stack to take out an aggressive player. and eventually win the tournament.
When the fun Stops, STOP!