The first step that one will take after deciding to pursue a career in the military is taking the Armed Service Vocational Aptitude Battery test. This is more commonly referred to as the ASVAB. The ASVAB not only determines whether or not a candidate is qualified to serve in the armed forces but also shows which specific job they have the most aptitude for.
Military law introduces offences not recognised by civilian courts, such as absence without leave (AWOL), desertion, political acts, malingering, behaving disrespectfully, and disobedience (see, for example, Offences against military law in the United Kingdom). Penalties range from a summary reprimand to imprisonment for several years following a court martial. Certain fundamental rights are also restricted or suspended, including the freedom of association (e.g. union organizing) and freedom of speech (speaking to the media). Military personnel in some countries have a right of conscientious objection if they believe an order is immoral or unlawful, or cannot in good conscience carry it out.
As of 2017, the U.S. spends about US$610 billion annually to fund its military forces and Overseas Contingency Operations. Put together, the U.S. constitutes roughly 40 percent of the world's military expenditures. The U.S. Armed Forces has significant capabilities in both defense and power projection due to its large budget, resulting in advanced and powerful technologies which enables a widespread deployment of the force around the world, including around 800 military bases outside the United States. The U.S. Air Force is the world's largest air force, the U.S. Navy is the world's largest navy by tonnage, and the U.S. Navy and the U.S. Marine Corps combined are the world's second largest air arm. In terms of size, the U.S. Coast Guard is the world's 12th largest naval force. 
Examinees also receive a score on what is called the Armed Forces Qualification Test (AFQT). AFQT scores are computed using the Standard Scores from four ASVAB subtests: Arithmetic Reasoning (AR), Mathematics Knowledge (MK), Paragraph Comprehension (PC), and Word Knowledge (WK). AFQT scores are reported as percentiles between 1-99. An AFQT percentile score indicates the percentage of examinees in a reference group that scored at or below that particular score. For current AFQT scores, the reference group is a sample of 18 to 23 year old youth who took the ASVAB as part of a national norming study conducted in 1997. Thus, an AFQT score of 90 indicates that the examinee scored as well as or better than 90% of the nationally-representative sample of 18 to 23 year old youth. An AFQT score of 50 indicates that the examinee scored as well as or better than 50% of the nationally-representative sample.