What was the primary goal of NATO?

Provide jobs and training in the post-WWII era
Create a military alliance with members of the Warsaw Pact
Prevent the spread of communism in Eastern Europe
Provide mutual defense among member nations if attacked