President Trump — whose tenure has been marked by his White House’s own internal drama and chaos — is now grappling with a pair of external threats in the form of Hurricane Harvey and North Korea, domestic and international risks that pose a major test of his presidency.

Facing looming peril on two fronts, from Harvey’s devastation of the Texas and Louisiana coasts and North Korea’s latest missile launch, Trump’s handling of the crises offers perhaps the greatest challenge of his leadership abilities, a real-time proving ground with tens of thousands of lives in the balance.

In some ways, Trump faces both a higher and lower bar when it comes to how the nation will assess his handling of the tropical storm and North Korea’s decision early Tuesday to launch an intermediate-range ballistic missile over Japan and into the Pacific Ocean.

Trump is a president who has no major accomplishments on Capitol Hill outside of the appointment of a new Supreme Court justice, is still under siege over his associates’ dealings with Russia during the campaign, is fighting an open war with his own Republican Party and is embroiled in a simmering feud with key members of his administration following his response to the white supremacist violence in Charlottesville.

An effective response to either crisis could allow Trump to demonstrate an ability to govern that has remained elusive during the turbulent first months of his administration. But for many of the same reasons, skepticism also abounds.

1 of 20 Full Screen Autoplay Close Skip Ad × President Trump and the first lady visit Texas in the aftermath of Harvey View Photos Trump arrived in Texas to survey the ongoing devastation from Hurricane Harvey. Trump’s visit, following his pledge of swift action by the federal government to provide relief to states affected by Harvey, comes on the 12th anniversary of Hurricane Katrina making landfall in Louisiana. Caption Trump arrived in Texas to survey the ongoing devastation from Hurricane Harvey. Trump’s visit, following his pledge of swift action by the federal government to provide relief to states affected by Harvey, comes on the 12th anniversary of Hurricane Katrina making landfall in Louisiana. Aug. 29, 2017 President Trump and first lady Melania Trump step off Air Force One after arriving in Corpus Christi, Tex. The president is getting an update on the relief and recovery operations in the aftermath of Hurricane Harvey. Charlie Blalock/European Pressphoto Agency Buy Photo Wait 1 second to continue.

On a high-stakes and closely watched trip to Texas on Tuesday, Trump seemed to recognize the precarious juncture, as well as the optics, casting the storm in “epic proportions” and emphasizing the need to take the long view regarding the region’s recovery.

“We want to do it better than ever before,” he said, receiving a Harvey response briefing at a firehouse in Corpus Christi, Tex. “We want to be looked at in five years and 10 years from now, as this is the way to do it.”

But in his public remarks he also focused heavily on how his administration’s performance and coordination with local officials is being viewed — “Everybody is talking about it” — while speaking little about the victims of the storm amid worries that Harvey’s true carnage will not be known for days.

“There was something missing from what President Trump said — I hope he will say it later today — but that’s the empathy for the people who suffer,” Ari Fleischer, President George W. Bush’s first press secretary, said on Fox News. “In my opinion, that should’ve been the first thing he should have said was that his heart goes out to those people in Houston who are going through this and that the government is here to help them to recover from this.”

Some Trump confidants have privately worried that his decision to head to Texas before the rain even stopped falling was risky, a premature victory lap that could later haunt him, as Bush learned after praising his FEMA chief for doing “a heck of a job” in the wake of Hurricane Katrina.

The president seemed to anticipate that concern, telling the gathered federal, state and local response officials at the firehouse that “we won’t say congratulations.”

“We don’t want to do that,” he said. “We don’t want to congratulate. We’ll congratulate each other when it’s all finished.”

President Trump spoke at a briefing on the response to Hurricane Harvey in Corpus Christi, Tex., on Aug. 29, with Texas Gov. Greg Abbot (R) and Sens. Ted Cruz and John Cornyn (R-Tex.). (The Washington Post)

On North Korea, Trump warned Tuesday that “all options are on the table,” after the country’s missile launch — North Korea’s most brazen provocation during Kim Jong Un’s five-year-long rule.

Despite the grave warning, Trump’s statement — which came more than 12 hours after White House aides had signaled that a statement by the president was in the works — was notably measured in contrast to his response to previous tests of ballistic missile launches by Pyongyang. After a recent test, he promised “fire and fury” if the isolated nation continued to provoke the United States and its allies in the region.

This launch, coming after North Korea last month launched two intercontinental ballistic missiles theoretically capable of reaching the U.S. mainland, underscores both Kim’s defiance of the international community and his determination to press ahead with his missile program.

The president’s generally rocky start has left him facing a deeply divided, dubious public, with approval ratings at just 35 percent, according to the Gallup Daily tracking poll.

“In the past, times of crisis has given presidents an opportunity to demonstrate leadership to help solve the issue at hand and help rally Americans behind the president for that and future crises,” said Republican strategist Doug Heye. “The challenge Trump faces is that he has turned off so many Americans with crises of his own making that, even if he handles these flawlessly, he may never win their confidence or even neutralize their unfavorable views of him.”

The president’s handling of the crises to this point have been, in many ways, trademark Trump. The president followed the storm closely, taking in the television images before taking to Twitter to comment on the “historic,” “unprecedented” and “once in 500 year” flooding.

His trip to Texas on Tuesday — with another one possible Saturday, to both Texas and Louisiana — was carefully planned but at times still bore the undercurrents of a political event rather than a disaster-relief effort.

In Corpus Christi, Trump was greeted outside by hundreds of supporters, who lined the road with signs and chanted, “Texas strong!” and “We love Trump!”

After the storm briefing, Trump emerged and offered an impromptu rally-style speech to a few hundred people who had turned out to cheer him on. “What a crowd! What a turnout!” he enthused, before thanking the state’s governor and senators. “This is historic, it’s epic what happened. But you know what, it happened in Texas, and Texas can handle anything.”

The president then lifted the Texas flag to loud cheers.

At his second stop of the day, in Austin, the president arrived at the Texas Department of Public Safety to find a sizable anti-Trump demonstration, with signs reading, “Nyet” and “Impeach little hands.”

Michael Steele, a former Republican National Committee chairman, said the fact that “we’re sitting around waiting to see how he’s going to behave or perform” is troubling.

“I think one of the challenges for this administration is that it has not gotten on course from the beginning,” Steele said. “It’s going to take a lot more than how you handle a crisis in Texas or how you handle the crisis in North Korea. There’s a need for consistency.”

With no missile launches­ during the first three weeks of August, the Trump administration had suggested that its tough talk toward Pyongyang was working. At a campaign-style rally in Phoenix last week, Trump alluded to his earlier rhetoric on North Korea, telling a boisterous crowd that Kim was “starting to respect” the United States.

“I respect the fact that I believe he is starting to respect us,” Trump said at the rally. “I respect that fact very much. Respect that fact.”

Those comments, however, came before North Korea’s firing of three short-range missiles Friday, as well as its latest launch early Tuesday.

Douglas Brinkley, a professor of history at Rice University in Houston, said Trump’s behavior in the face of immense challenges will help determine how he compares to his predecessors. “A major component of being U.S. president is inspiring the country to pull together in times of cataclysmic events,” he said. “In the case of natural disasters, the president is supposed to be the personification of care and concern.”

Trump’s trip to Texas, he said, was a positive, but his “coldhearted behavior” — including tweeting about his pardon for controversial former Arizona sheriff Joe Arpaio and plugging Milwaukee County Sheriff David Clarke’s book in the midst of the storm — undermined his effectiveness.

“He lost the moral high ground,” Brinkley said. “We’re not feeling the empathy as much as he’s going through the motions.”

On North Korea, he added, Trump “complicated his own hand” with his “respect” line during the Phoenix rally. “That’s not a sign of respect when you fire a missile over Japan — that’s flipping off the president,” Brinkley said. “He’s so polarized the country that it makes it harder to pull America through a foreign policy crisis.”

Trump faces a possible hiccup on Wednesday, when he heads to an event in Springfield, Mo., that White House aides say will mark the start of a sustained push to build momentum for the president’s tax agenda in Congress, with a particular focus on the middle class and small businesses.

Aides have said they plan a far more robust push by Trump on tax legislation than was the case with Republican proposals to overhaul the Affordable Care Act, which failed last month in the Senate.

Some White House officials are hoping Trump’s remarks in Missouri will remain very focused on his tax agenda and his vision for the economy — and that he’ll refrain from devolving into a blizzard of attacks aimed at Democrats and Republicans with whom he’s been feuding.

Jim Manley, a former longtime aide to former Senate minority leader Harry M. Reid (D-Nev.), said he doesn’t fault Trump for going on the road Wednesday to pitch his tax agenda.

“His public effort to raise this as a top agenda item should have started a while ago,” he said.

But as of Tuesday, at least, the content of the tax speech remained fluid.

Damian Paletta contributed to this report.