An armed attack on one member is an attack on all is the collective defence commitment, and it has been invoked once, after the attacks of 11 September 2001. The article obliges each member to take the action it deems necessary, which may include armed force, so it is not an automatic declaration of war. The two percent of GDP figure is a separate spending guideline agreed politically in 2014, not a treaty obligation.