nr sot serfaty obama npr walker foolish approach_00002913.jpg
PHOTO: NPR
nr sot serfaty obama npr walker foolish approach_00002913.jpg
Now playing
02:20
Obama slams Scott Walker's 'foolish approach' on Iran
Now playing
03:33
Congress wants power to review Iran nuclear deal
intv amanpour ernest moniz sanctions_00023321.jpg
intv amanpour ernest moniz sanctions_00023321.jpg
Now playing
02:33
U.S.: Around 6 months to lift Iran sanctions
Sciutto Iran Nuclear Deal Explainer Orig_00000000.jpg
Sciutto Iran Nuclear Deal Explainer Orig_00000000.jpg
Now playing
01:44
Final Iran nuclear deal faces hurdles
erin burnett out front mac thornberry kerry iran nuclear deal pitch_00010704.jpg
erin burnett out front mac thornberry kerry iran nuclear deal pitch_00010704.jpg
Now playing
03:00
Thornberry: Kerry was in 'strong advocacy mode'
PHOTO: FABRICE COFFRINI/AFP/Getty Images
Now playing
06:01
Will Congress kill the Iran nuclear deal?
Iran Nuclear Zarif AR ORIGWX_00002825.jpg
Iran Nuclear Zarif AR ORIGWX_00002825.jpg
Now playing
01:56
Iran foreign minister on nuclear talks
erin intv carter iran nuclear facilities bunker buster_00002523.jpg
erin intv carter iran nuclear facilities bunker buster_00002523.jpg
Now playing
01:37
Carter: Iran, N. Korea could be working on nuke
Now playing
05:35
Senator: No one has a firm grasp on Iran framework deal
United States Secretary of State John Kerry (L) sits with his delegation during a negotiation meeting concerning Iran's nuclear program with Iran's Foreign Minister Javad Zarif (R) in Lausanne on March 19, 2015 as European Union Political Director Helga Schmid (4-L) looks onover.
PHOTO: BRIAN SNYDER/AFP/Getty Images
United States Secretary of State John Kerry (L) sits with his delegation during a negotiation meeting concerning Iran's nuclear program with Iran's Foreign Minister Javad Zarif (R) in Lausanne on March 19, 2015 as European Union Political Director Helga Schmid (4-L) looks onover.
Now playing
04:44
Energy Secy.: Deal delays Iran's ability to make bomb
lead pkg acosta iran deal obama_00000000.jpg
lead pkg acosta iran deal obama_00000000.jpg
Now playing
02:13
Obama: Iran deal "once-in-a-lifetime opportunity"
Republican Letter Iran AR ORIGWX_00000000.jpg
Republican Letter Iran AR ORIGWX_00000000.jpg
Now playing
02:15
Should Republicans have sent a letter to Iran?
tapper: rhodes intv_00010115.jpg
tapper: rhodes intv_00010115.jpg
Now playing
06:10
W.H. official defends Iran framework deal
nr ll Serfaty obama nyt intv_00012227.jpg
nr ll Serfaty obama nyt intv_00012227.jpg
Now playing
02:07
President Obama defends Iran nuke deal to NYT
PHOTO: FABRICE COFFRINI/AFP/Getty Images
Now playing
06:36
Former U.S. negotiator: key of Iran deal is in the details
PHOTO: Lior Mizrahi/Getty Images
Now playing
06:55
Netanyahu: Iran nuke deal "very bad"
tsr dnt sciutto u.s. concerned about russian jets_00012525.jpg
PHOTO: Russian Military
tsr dnt sciutto u.s. concerned about russian jets_00012525.jpg
Now playing
02:39
Will Russia sell missiles, fighter jets to Iran?
Caption:Israeli Prime Minister Benjamin Netanyahu makes a statement to the press about negotiations with Iran at his office in Jerusalem on April 1, 2015. World powers must toughen their stance to reach a 'better' deal with Iran aimed at preventing it from obtaining nuclear weapons, Netanyahu said. AFP PHOTO / POOL / DEBBIE HILL (Photo credit should read DEBBIE HILL/AFP/Getty Images)
PHOTO: Debbie Hill/AFP/Getty
Caption:Israeli Prime Minister Benjamin Netanyahu makes a statement to the press about negotiations with Iran at his office in Jerusalem on April 1, 2015. World powers must toughen their stance to reach a 'better' deal with Iran aimed at preventing it from obtaining nuclear weapons, Netanyahu said. AFP PHOTO / POOL / DEBBIE HILL (Photo credit should read DEBBIE HILL/AFP/Getty Images)
Now playing
03:38
Netanyahu: I respect President Obama
Now playing
02:47
Iran's leader faces division at home
idesk iran rouhani nuclear deal framework_00012112.jpg
PHOTO: Reuters
idesk iran rouhani nuclear deal framework_00012112.jpg
Now playing
01:43
Rouhani: We will stick to our promises on nuclear deal
nr seg iranians react to nuclear deal_00005004.jpg
PHOTO: Twitter/@pedl
nr seg iranians react to nuclear deal_00005004.jpg
Now playing
01:11
Iranians celebrate nuclear deal
tsr intv labott john kerry iran nuclear talks_00001120.jpg
tsr intv labott john kerry iran nuclear talks_00001120.jpg
Now playing
03:15
Kerry: 'People negotiated hard' in Iran nuclear talks
erin dnt acosta white house iran nuclear reaction_00002319.jpg
erin dnt acosta white house iran nuclear reaction_00002319.jpg
Now playing
02:28
Obama: 'This deal is not based on trust'
British Foreign Secretary Philip Hammond, U.S. Secretary of State John Kerry, EU foreign policy chief Federica Mogherini and Iranian Foreign Minister Mohammad Javad Zarif arrive prior to the announcement of an agreement on Iran nuclear talks on April 2, 2015 at the The Swiss Federal Institutes of Technology in Lausanne
PHOTO: FABRICE COFFRINI/AFP/Getty Images
British Foreign Secretary Philip Hammond, U.S. Secretary of State John Kerry, EU foreign policy chief Federica Mogherini and Iranian Foreign Minister Mohammad Javad Zarif arrive prior to the announcement of an agreement on Iran nuclear talks on April 2, 2015 at the The Swiss Federal Institutes of Technology in Lausanne
Now playing
04:57
Expert assesses the good and bad of the Iran deal
erin intv israeli pm on iran nuke deal_00002720.jpg
erin intv israeli pm on iran nuke deal_00002720.jpg
Now playing
04:11
Israeli spokesman: Iran deal is 'very dangerous'
Caption:WASHINGTON, DC - MARCH 25: U.S. President Barack Obama speaks during an event marking the 5th anniversay of the Affordable Care Act March 25, 2015 at the South Court Auditorium of Eisenhower Executive Office Building in Washington, DC. President Obama spoke on the benefits of the legislation. (Photo by Alex Wong/Getty Images)
PHOTO: Alex Wong/Getty Images
Caption:WASHINGTON, DC - MARCH 25: U.S. President Barack Obama speaks during an event marking the 5th anniversay of the Affordable Care Act March 25, 2015 at the South Court Auditorium of Eisenhower Executive Office Building in Washington, DC. President Obama spoke on the benefits of the legislation. (Photo by Alex Wong/Getty Images)
Now playing
02:23
Obama: 'It is a good deal'
(CNN) —  

President Barack Obama swatted away as “foolish” pledges from would-be 2016 presidential candidates to undo the nuclear deal being finalized with Iran if elected.

Obama was responding to Wisconsin Gov. Scott Walker who vowed last week to pull the U.S. out of a nuclear deal with Iran on day one of his presidency – that is, if he decides to run and is elected. Walker is near the top of recent polling among potential Republican presidential contenders.

“It would be a foolish approach to take, and, you know, perhaps Mr. Walker, after he’s taken some time to bone up on foreign policy, will feel the same way,” Obama said in an interview with NPR published Tuesday.

Former Texas Gov. Rick Perry, also a potential GOP contender, took the same position as Walker on Monday, swearing to “invalidate” the Iran accord as “one of my first actions in office” if he were elected President.

Walker hit back in a Tuesday statement to CNN, knocking Obama for his “failed leadership.”

“Americans would be better served by a president who spent more time working with governors and members of Congress rather than attacking them,” Walker said.

But Obama said he’s confident his successor won’t pull the U.S. out of an international agreement with Iran that involves not just the U.S., but five top world powers – the four other members of the U.N. Security Council and Germany.

RELATED: Obama: I’m ‘absolutely committed’ to Israel’s security

“And, you know, I am confident that any president who gets elected will be knowledgeable enough about foreign policy and knowledgeable enough about the traditions and precedents of presidential power that they won’t start calling to question the capacity of the executive branch of the United States to enter into agreements with other countries,” Obama said.

Reversing that precedent, Obama said, would “embolden our enemies” and prove problematic for the U.S.’s relations with its allies.

Republicans and some Democrats in Congress are calling for congressional oversight over an eventual deal with Iran and the Senate is expected to vote on a bill that would require Obama to run a deal through Congress. But Obama has been insistent that the executive branch has the power to reach the agreement alone and has resisted the calls from Congress.

Obama pointed out that the “majority of agreements that we enter into around the world” are not ratified by Congress.

A vote in Congress on Obama’s Iran deal could doom the deal with Iran. Republicans in Congress, who vehemently oppose the negotiated framework agreement, hold the majority in both chambers of Congress.

RELATED: Schumer says let Congress decide on Iran deal