It depends on many factors. All-in as the only option is not very effective, or rather it is very ineffective. But in order for there to be other options besides all-in, the player must have the necessary skills and experience.
Movies often show a situation where the hero bets all-in with a “junk” hand, everyone around gets scared and folds, and the poker player takes the money and leaves with the beauty into the sunset. In reality, bluffing all-in with a weak hand will most often result in a loss of money, so if you want to risk your entire stack and "squeeze" your opponent out of the pot, there must be good reasons. For example, your opponent plays extremely cautiously and folds to any aggression.As for tournament types of poker, the important point here is the right time for such a bold bet as all-in. It is also important whether rebuys are provided in the tournament - the opportunity to buy an additional stack equal to the original one. And when exactly can it be done.
Another important factor to mention ( only for tournaments) is the speed of the game, there is a big difference in shoving 50 blinds in a slow tournament that shoving the same blinds in a hyper turbo game. in a slow tournament you can have the chance to play more hands and the best way to increase your stack is in post-flop connecting a strong hand ( 2 pairs or better) . in a fast game you have less time to wait for a good hand, so if you get a mid pair you can take a chance to play it aggressive.
If I had a big stack I would go all in with all those hands. If I had a small stack and I was down to say 4 blinds I would go all in with ace king only;
I don't think I'll go all-in with any of them, but it could equal the all-in of another with ak or pairs of 7, although it always depends on how I do in the tournament, the time I spend and the amount of chips I have.