During a November 2004 reading and Q&A session to promote his memoir, "Dreams From My Father," President Obama, then a senator-elect, detailed his views on the motivations behind terrorism and the role U.S. foreign policy plays in such situations.

The comments, unearthed by MSNBC's "Up W/Chris Hayes," came when Obama was asked about terrorism at a Barnes & Noble bookstore in New York City. In his answer, Obama advocated for more of a "soft power" approach, or using attraction rather than coercion or force when dealing with foreign powers.

"Ultimately, terrorism is a tactic. We're not fighting terrorists, we're fighting people who engage in terrorism, but have a whole host of rationales and excuses for why they do this," Obama said. "And to the extent that we can change the sense of opportunity in many of these countries, we can change the manner in which we function in these countries in more positive, proactive ways, then we're not going to eliminate terrorism entirely but we're at least going to be able to make more of a dent than if all we're resorting to is military firepower."

Eight years later, Obama's past comments are particularly notable in the context of his approach to counterterrorism as president. As The Huffington Post's Joshua Hersh reported, Obama's response to terrorism -- particularly through the use of drone strikes -- will be a major challenge in his second term:

As it stands now, the Obama administration, which vastly stepped up the use of drones and targeted killings over the past four years, has done little to assuage the concerns of outsiders about the program's legality or utility. Indeed, the drone program's components are so secret that the administration routinely refuses to acknowledge that it even exists.

In a second term, that stonewalling may no longer be possible, particularly as new questions are raised about whether the program is legal, or if it even works. The fact that administration officials have offered justifications for the program in narrow speeches and interviews only adds to that sense of inevitability.

"It's very unclear what the United States is actually doing in Yemen other than they carry out bombings and people on the ground are dying," said Gregory Johnsen, an expert on Al Qaeda in Yemen and the author of a new book on the subject. "Who's dying, whether or not they're actually Al Qaeda -- we just don't know."

Obama's 2004 comments have resurfaced just days after deadly fighting between Israel and Hamas temporarily halted in a ceasefire agreement. Some, including the Jerusalem Fund's Yousef Munayyer, have argued that American policies toward Israel and Palestine have sent the wrong message about using violence.

"The failure of America’s approach toward the Israelis and the Palestinians, much like its flawed policies toward the region in general, is founded on the assumption that American hard power, through support for Israel and other Middle Eastern governments, can keep the legitimate grievances of the people under wraps," Munayyer wrote in a New York Times op-ed. "By constantly condemning Palestinian armed resistance, and failing to condemn Israeli settlement expansion and repression of nonviolent Palestinian dissent, the message the United States is sending the Palestinian people is this: All resistance to occupation is illegitimate."

Prior to the ceasefire agreement, Obama said the United States is "fully supportive of Israel's right to defend itself."

Also on HuffPost:

Loading Slideshow...
  • US President Barack Obama pauses while a

    US President Barack Obama pauses while answering questions after a statement in the Press Briefing Room of the White House on June 8, 2012 in Washington, DC. Obama said Friday that Europe's leaders 'understand the urgent need to act' to solve the eurozone crisis, as a rescue plan for Spain's banks appeared in the works. But he also warned Greeks that they would face more hardship if they choose to leave the eurozone after elections take place on June 17. AFP PHOTO/BRENDAN SMIALOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/GettyImages)

  • US President Barack Obama speaks about t

    US President Barack Obama speaks about the economy on June 8, 2012, at the White House in Washington, DC. Obama said Friday that Europe's leaders 'understand the urgent need to act' to solve the eurozone crisis, as a rescue plan for Spain's banks appeared in the works. But he also warned Greeks that they would face more hardship if they choose to leave the eurozone after elections take place on June 17. AFP PHOTO/BRENDAN SMIALOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/GettyImages)

  • US President Barack Obama speaks about t

    US President Barack Obama speaks about the economy on June 8, 2012, at the White House in Washington, DC. Obama said Friday that Europe's leaders 'understand the urgent need to act' to solve the eurozone crisis, as a rescue plan for Spain's banks appeared in the works. But he also warned Greeks that they would face more hardship if they choose to leave the eurozone after elections take place on June 17. AFP PHOTO/BRENDAN SMIALOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/GettyImages)

  • Dianne Feinstein, Saxby Chambliss, Mike Rogers, C.A. "Dutch" Ruppersberger

    After a closed-door meeting with National Intelligence Director James Clapper, the four leaders of the House and Senate Intelligence Committees hold a news conference, on Capitol Hill in Washington, Thursday, June 7, 2012, to discuss the recent spate of classified national security information leaks. From left are Rep. C.A. "Dutch" Ruppersberger, D-Md., the ranking Democrat on the House Intelligence Committee; House Intelligence Committee Chairman Mike Rogers, R-Mich., Sen. Saxby Chambliss, R-Ga., vice-chair of the Senate Intelligence Committee, and Senate Intelligence Committee Chair Sen. Dianne Feinstein, D-Calif. (AP Photo/J. Scott Applewhite)

  • Dianne Feinstein, Saxby Chambliss, Mike Rogers, C.A. "Dutch" Ruppersberger

    After a closed-door meeting with National Intelligence Director James Clapper, the four leaders of the House and Senate Intelligence Committees hold a news conference, on Capitol Hill in Washington, Thursday, June 7, 2012, to discuss the recent spate of classified national security information leaks. From left are, Rep. C.A. "Dutch" Ruppersberger, D-Md., the ranking Democrat on the House Intelligence Committee; House Intelligence Committee Chairman Rep. Mike Rogers, R-Mich., Senate Intelligence Committee Chair Sen. Dianne Feinstein, D-Calif.; and Sen. Saxby Chambliss, R-Ga., vice-chair of the Senate Intelligence Committee. (AP Photo/J. Scott Applewhite)

  • Dianne Feinstein, Saxby Chambliss, Mike Rogers, C.A. "Dutch" Ruppersberger

    After a closed-door meeting with National Intelligence Director James Clapper, the four leaders of the House and Senate Intelligence Committees hold a news conference, on Capitol Hill in Washington, Thursday, June 7, 2012, to discuss the recent spate of classified national security information leaks. From left are, Rep. C.A. "Dutch" Ruppersberger, D-Md., the ranking Democrat on the House Intelligence Committee; House Intelligence Committee Chairman Rep. Mike Rogers, R-Mich., Senate Intelligence Committee Chair Sen. Dianne Feinstein, D-Calif.; and Sen. Saxby Chambliss, R-Ga., vice-chair of the Senate Intelligence Committee. (AP Photo/J. Scott Applewhite)

  • James Clapper

    Director of National Intelligence James Clapper, center, emerges from a closed-door meeting with the House and Senate Intelligence Committees aimed at stopping security leaks, Thursday, June 7, 2012, on Capitol Hill in Washington. (AP Photo/J. Scott Applewhite)

  • James Clapper

    Director of National Intelligence James Clapper, center, emerges from a closed-door meeting with the House and Senate Intelligence Committees aimed at stopping security leaks, Thursday, June 7, 2012, on Capitol Hill in Washington. (AP Photo/J. Scott Applewhite)

  • Intelligence Cmte Members Discuss Leaks Of Classified Nat'l Security Information

    WASHINGTON, DC - JUNE 07: U.S. Sen. John McCain (R-AZ) is questione by reporters after he left a closed door joint Senate and House Intelligence Committee meeting on Capitol Hill, on June 7, 2012 in Wasington, DC. The joint Intelligence committee met with James R. Clapper,ÊDirector of National Intelligence to discuss administration leaks of classified information. (Photo by Mark Wilson/Getty Images)

  • Jay Carney

    Press Secretary Jay Carney briefs reporters at the White House in Washington, Monday, June 4, 2012. (AP Photo/Charles Dharapak)

  • US President Barack Obama speaks to the

    US President Barack Obama speaks to the media on June 8, 2012 at the White House in Washington,DC. Obama addressed the eurozone crisis and its impact on the United States while urging Congress to pass a string of bills designed to help grow the economy and create more jobs. AFP PHOTO/BRENDAN SMIALIOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/GettyImages)

  • US President Barack Obama speaks to the

    US President Barack Obama speaks to the media on June 8, 2012 at the White House in Washington,DC. Obama addressed the eurozone crisis and its impact on the United States while urging Congress to pass a string of bills designed to help grow the economy and create more jobs. AFP PHOTO/BRENDAN SMIALIOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/GettyImages)

  • House Leader Boehner And Cantor Respond To Obama's Economic News Conference

    WASHINGTON, DC - JUNE 08: House Majority Leader Eric Cantor (R-VA) (L) and U.S. Speaker of the House John Boehner (R-OH) (R) respond to U.S. President Barack Obama's remarks on the U.S. economy June 8, 2012 in Washington, DC. During their remarks, Cantor said, 'Did he see the job numbers that came out last week? The private sector is not doing fine. And, frankly, I'd ask the president to stop engaging in the blame game.' (Photo by Win McNamee/Getty Images)

  • House Leader Boehner And Cantor Respond To Obama's Economic News Conference

    WASHINGTON, DC - JUNE 08: House Majority Leader Eric Cantor (R-VA) (L) and U.S. Speaker of the House John Boehner (R-OH) (R) respond to U.S. President Barack Obama's remarks on the U.S. economy June 8, 2012 in Washington, DC. During their remarks, Cantor said, 'Did he see the job numbers that came out last week? The private sector is not doing fine. And, frankly, I'd ask the president to stop engaging in the blame game.' (Photo by Win McNamee/Getty Images)

  • House Leader Boehner And Cantor Respond To Obama's Economic News Conference

    WASHINGTON, DC - JUNE 08: U.S. Speaker of the House John Boehner (R-OH) arrives to respond to U.S. President Barack Obama's remarks on the U.S. economy June 8, 2012 in Washington, DC. During remarks with House Majority Leader Eric Cantor, Cantor said, 'Did he see the job numbers that came out last week? The private sector is not doing fine. And, frankly, I'd ask the president to stop engaging in the blame game.' (Photo by Win McNamee/Getty Images)

  • House Leader Boehner And Cantor Respond To Obama's Economic News Conference

    WASHINGTON, DC - JUNE 08: House Majority Leader Eric Cantor (R-VA) (L) and U.S. Speaker of the House John Boehner (R-OH) (R) respond to U.S. President Barack Obama's remarks on the U.S. economy June 8, 2012 in Washington, DC. During their remarks, Cantor said, 'Did he see the job numbers that came out last week? The private sector is not doing fine. And, frankly, I'd ask the president to stop engaging in the blame game.' (Photo by Win McNamee/Getty Images)

  • House Leader Boehner And Cantor Respond To Obama's Economic News Conference

    WASHINGTON, DC - JUNE 08: U.S. Speaker of the House John Boehner (R-OH) (R) and House Majoirty Leader Eric Cantor (R-VA) (L) respond to U.S. President Barack Obama's remarks on the U.S. economy June 8, 2012 in Washington, DC. During Cantor's remarks, Cantor said, 'Did he see the job numbers that came out last week? The private sector is not doing fine. And, frankly, I'd ask the president to stop engaging in the blame game.' (Photo by Win McNamee/Getty Images)