In written answers to questions posed by the Senate Armed Services Committee, where he will testify today, Petraeus said the possibility of military action against Iran should be retained as a “last resort.” But he said the United States “should make every effort to engage by use of the whole of government, developing further leverage rather than simply targeting discrete threats.”