U.S. Military and it's spending. *Pic heavy

And how did the nuclear subs, nuclear bombs, aircraft carriers, stealth helicopters, missles, bombers, jet fighters and whatever else you want to name in the military stop other terrorist or guerrilla attacks?

Please indulge me.

Also while on the matter, explain to me how do the countries that spend 1/10th and less on their military deal with the threats that they stop if they have so much less military power?