The U.S. Defense Department gave Microsoft "the best possible validation they could get" in awarding a multibillion-dollar defense deal to the company's cloud platform over Amazon, CNBC's Jim Cramer said Monday.

On the other end of the spectrum, losing out on the potential $10 billion contract is not a "big deal for Amazon," the "Mad Money" host said. The request for proposals came down to two of the most valuable companies by market cap.

"The Pentagon's basically saying that Microsoft's cloud platform is just as good as Amazon's, or at least close enough for government work," said Cramer, adding that it's a "much more significant win for Microsoft Azure than it would be for Amazon Web Services."

Azure, the cloud computing service from Microsoft, topped Amazon Web Services, IBM Cloud and Oracle Cloud in the competition for the agreement worth as much as $10 billion through late 2029, the Pentagon announced Friday. Under the Joint Enterprise Defense Infrastructure deal, aka JEDI, the company will build an enterprise cloud infrastructure that will support the Defense Department's business and mission operations.

Microsoft reported in its fiscal first-quarter results, which beat Wall Street estimates, that its Azure public cloud business grew 59%, though the company does not break down Azure's revenue in dollar figures. The Intelligent Cloud segment, which includes Azure and Windows Server, among other services, drew a combined $10.85 billion in revenue.

"We already know Microsoft was firing on all cylinders. This JEDI contract simply confirms it," Cramer said.

As for Amazon, AWS is still the top cloud infrastructure provider, though it may not have been given a fair shot at the contract, Cramer said. Former Secretary of Defense James Mattis reportedly said President Donald Trump instructed him to "screw Amazon" out of the deal.

Trump on multiple occasions has aired his grievances with Jeff Bezos, the billionaire Amazon founder and CEO and Washington Post owner. Amazon was considered a favorite for the deal after it was awarded a CIA contract in 2013.

"It wouldn't shock me if he, or someone in his orbit, put their thumb on the scales in favor of Microsoft," Cramer said, though he says it's not a big worry for Amazon.

"You've got to understand: AWS did $9 billion in the quarter in revenue," he said. "They're not weeping over losing what could have been a $10 billion deal over the course of 10 years."

The deal means a lot to Microsoft, whose stock surged 2.46% to $144.19 a piece in Monday's session. Amazon's stock barely nudged since the news broke. But Amazon's loss could be seen as a win for IBM and Alphabet, Cramer suggested.

He said "it means Amazon won't be able to monopolize all of our government's cloud-related" defense spending. "If Amazon won the JEDI contract, then AWS would have been the Department of Defense's default cloud infrastructure for the next 10 years. Now, though, the smaller players have more of a chance to win business."

"While the stock had a big run here, I think Microsoft remains attractive," the host said. "As for Amazon, losing this business is no skin off their back. The real issue is that they've spent so heavily to grow the business, and while I'm okay with that, it might give you more opportunities to buy the stock into weakness down the road because of Wall Street's inherent shortsightedness."

Disclosure: Cramer's charitable trust owns shares of Amazon, Microsoft and Alphabet. Disclaimer

Questions for Cramer?
Call Cramer: 1-800-743-CNBC

Want to take a deep dive into Cramer's world? Hit him up!
Mad Money Twitter - Jim Cramer Twitter - Facebook - Instagram

Questions, comments, suggestions for the "Mad Money" website? madcap@cnbc.com

tag