Democratic presidential front-runner Sen. Bernie Sanders said he would “absolutely” use military force in certain situations if he’s elected to the White House in November.

The Vermont senator was asked during an upcoming interview with CBS News’ “60 Minutes” if he would ever take military action.

“Well, absolutely. Of course I do. You know, you hopefully as — as rare — as possible. But, yeah, we have the best military in the world,” Sanders told the news show in a clip released from the interview, which is set to air Sunday evening.

Host Anderson Cooper questioned him about when he would use the armed forces.

“Well, threats against the American people, to be sure. Threats against our allies. I believe in NATO. I believe that the United States, everything being equal, should be working with other countries in alliance, not doing it alone,” Sanders said.

He said if China took military action against Taiwan, he would resort to military force.

“I think we have got to make it clear to countries around the world that we will not sit by and allow invasions to take place, absolutely,” he said.

Sanders also said he would meet with North Korean President Kim Jong Un.

“Yeah. I mean I’ve criticized Trump for everything under the world — under the sun. But meeting with people who are antagonistic is to me, not a bad thing to do,” he said.

“I think, unfortunately, Trump went into that meeting unprepared. I think it was a photo opportunity and did not have the kind of diplomatic work necessary to make it a success. But I do not have a problem with sitting down with adversaries all over the world,” Sanders said.

Trump has met with Kim three times, including last June when he stepped across the border between North and South Korea, becoming the first sitting president to do so.

The full “60 Minutes” interview airs at 7 p.m.