Correction: An earlier version of this column reported incorrectly that 70 percent of Iraq’s battalion commanders were replaced during the 2007 surge of U.S. forces in Iraq. According to the former administration official quoted in the column, 70 percent of the commanders of Iraq’s police commando battalions were replaced, not of those in the army overall.

Tribal fighters carrying their weapons pose for photographs during an intensive security deployment to fight against militants of the Islamic State. (Stringer/Iraq/Reuters)

What are the strengths of the Islamic State? I posed this question to two deeply knowledgeable observers — a European diplomat and an American former official — and the picture they painted is worrying, although not hopeless. Defeating the group would require a large and sustained strategic effort from the Obama administration, but it could be done without significant numbers of U.S. ground troops.

The European diplomat, stationed in the Middle East, travels in and out of Syria and has access to regime and opposition forces. (Both sources agreed to speak only if their identities were not revealed.) He agrees with the consensus that the Islamic State has gained considerable economic and military strength in recent months. He estimates that it is making $1 million a day each in Syria and Iraq by selling oil and gas, although U.S. experts believe this number is too high in Iraq.

The Islamic State’s military strategy is brutal but also smart. The group’s annual reports — it has issued them since 2012 — detail its military methods and successes to try to impress its backers. The videos posted online of executions are barbaric but also strategic. They are designed to sow terror in the minds of opponents who, when facing Islamic State fighters on the battlefield, now reportedly flee rather than fight.

But the most dangerous aspect of the Islamic State, this diplomat believes, is its ideological appeal. It has recruited marginalized, disaffected Sunni youths in Syria and Iraq who believe they are being ruled by apostate regimes. This appeal to Sunni pride has worked largely because of the sectarian policies of the Baghdad and Damascus governments. But the Islamic State has also grown because of the larger collapse of moderate, secular and even Islamist institutions and groups — such as the Muslim Brotherhood — throughout the Middle East.

How to handle this challenge? The American, a former senior administration figure, counsels against pessimism. The Islamic State “is not nearly as strong as al-Qaeda in Iraq was in its heyday,” he noted, playing down recent reports that the militant forces contain within them fearsome elements of Saddam Hussein’s disbanded army. “We fought that army. It was not very impressive,” he noted. The Islamic State could be defeated, he said, but it would take a comprehensive and sustained strategy, much like the one that undergirded the surge in Iraq.

“The first task is political,” he said, supporting the Obama administration’s efforts to press the Iraqi government to become more inclusive. “We have more leverage now than at any time in recent years, and the administration is using it.” If this continues, the next step would be to create the most powerful and effective ground force that could take on the Islamic State — which would not be the Free Syrian Army but rather a reconstituted Iraqi army. Built, trained and equipped by the United States, “it’s actually got some very effective units. Iraqi special forces were trained in Jordan and are extremely impressive,” the American said, pointing out that it was those forces that recaptured the Mosul dam recently. It has underperformed because then-Prime Minister Nouri al-Maliki had transformed it in the past three years into a sectarian and loyalist force.

The reconstitution of Iraqi army units will require the firing of the Shiite commanders that Maliki appointed. This again mirrors the surge, during which 70 percent of Iraq’s battalion commanders were replaced to create a more inclusive and effective fighting force.

Once the Iraqi army is fighting again, the American said, it should employ the “oil spots” strategy of the surge, clearing and holding areas. But the key to that would be winning the trust of the local Sunni populations. That same approach could be used in Syria, with the Free Syrian Army using money and providing security to win over locals who oppose Assad but now ally with the Islamic State out of fear rather than conviction.

The two observers agreed on one central danger. The temptation to gain immediate military victories over the Islamic State could mean that the United States would end up tacitly partnering with the Assad regime in Syria. This would produce a short-term military gain but a long-term political disaster. “It would feed the idea that the Sunnis are embattled, that a Crusader Christian-Shiite alliance is persecuting them and that all Sunnis must resist this alien invasion,” the European diplomat said. “The key is that Sunnis must be in the lead against IS. They must be in front of the battlefield.”

The strategy that could work against the Islamic State is nothing less than a second Sunni Awakening. It’s a huge challenge but appears to be the only option with a plausible chance of success.

Read more from Fareed Zakaria’s archive, follow him on Twitter or subscribe to his updates on Facebook.