3 Cloud and AI Stocks That Could Help Set You Up for Life

Source Motley_fool

The cloud and artificial intelligence (AI) markets expanded rapidly over the past decade. Many companies realized it was more convenient to use cloud-based services instead of desktop-based software -- which required more on-site computing power, maintenance, and manual updates -- and they used AI algorithms to crunch all of that cloud-based data to make smarter decisions.

Three companies that benefited from those secular trends are Microsoft (NASDAQ: MSFT), Cloudflare (NYSE: NET), and Five9 (NASDAQ: FIVN). Let's see what makes those companies great cloud and AI plays, and why they could still head higher over the next few decades.

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Continue »

An illustration of a digital brain.

Image source: Getty Images.

Microsoft

Microsoft was once a slow-growth tech giant. But under Satya Nadella, who took the helm as CEO in 2014, it aggressively expanded its cloud ecosystem, rolled out more mobile apps for iOS and Android instead of developing its own phones, and invested in new AI technologies.

By transforming its desktop-based applications into cloud-based services and mobile apps, Microsoft kept pace with Amazon and Alphabet's Google in the cloud and AI race. Today, Microsoft's Azure is the world's second-largest cloud infrastructure platform after Amazon Web Services (AWS). It also owns a major stake in OpenAI, the creator of ChatGPT, and it's integrating its own Copilot AI companion into its Windows operating system, Office productivity apps, and cloud-based services.

From fiscal 2014 to fiscal 2024 (ended last June), Microsoft's revenue increased at a compound annual growth rate (CAGR) of 11% and its EPS rose at a CAGR of 16%. From fiscal 2024 to fiscal 2027, analysts expect its revenue and EPS to both rise at a CAGR of 14%. That's an impressive growth trajectory for a stock that trades at 28 times next year's earnings.

Microsoft isn't immune to the rising tariffs and escalating trade conflicts that could drive many of its customers to rein in their software spending. But over the long term, the growth of the cloud and AI markets should still tether more customers to its sticky ecosystem.

Cloudflare

Cloudflare is one of the world's largest content delivery network (CDN) providers. CDNs accelerate the delivery of digital content for websites and apps by storing cached copies of that content on edge servers, which are located closer to their users than the original servers. They also shield websites from bot-based attacks with verification checks for their human users.

Cloudflare's co-founder and COO, Michelle Zatlyn, has repeatedly said the company aims to become a "water filtration" system for the modern internet, which shields both websites and their visitors from cyber threats. In 2023, Cloudflare launched Workers AI, a platform that enables developers to directly build and deploy AI apps across its edge networks.

Today, Cloudflare serves data from facilities in 335 cities in more than 125 countries, and it processes an average of 71 million HTTP requests each second. If its services went down, many of the world's most popular websites and apps would be inaccessible. That's why Cloudflare should continue to grow even if the Trump administration's tariffs and trade conflicts trigger a global recession.

Cloudflare went public in 2019, and its revenue rose at a CAGR of 40% from 2020 to 2024. From 2024 to 2027, analysts expect its revenue to grow at a CAGR of 27% and finally turn profitable by the final year. The stock isn't a bargain at 16 times next year's sales, but it's a straightforward way to profit from the growth of the cloud and AI markets.

Five9

Five9 is a leading provider of cloud-based customer support services. It helps companies manage their customer interactions across voice, chat, email, web, social media, and mobile channels with AI-powered chatbots and human agents. Its customers can add those services to its apps with just a few lines of code. It now serves more than 3,000 enterprise, mid-market, and SMB customers worldwide, and it handles over 14 billion call minutes every year.

Five9 plans to replace traditional call centers with its streamlined services, and that business model is built to flourish through economic downturns. Companies will likely ramp up their usage of Five9's services as they expand, but they can also use them to cut costs and curb their dependence on human customer service representatives.

From 2014 to 2024, Five9 grew its revenue at a CAGR of 26%. From 2024 to 2027, analysts expect its revenue to rise at a CAGR or 10%. They also expect it to turn profitable this year and grow its EPS at a CAGR of 125% over the following two years.

Based on those expectations, Five9's stock looks cheap at less than 2 times this year's sales -- and it's a great way to profit from the long-term growth of the cloud-based contact center market.

Should you invest $1,000 in Microsoft right now?

Before you buy stock in Microsoft, consider this:

The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Microsoft wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.

Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $611,589!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $697,613!*

Now, it’s worth noting Stock Advisor’s total average return is 894% — a market-crushing outperformance compared to 163% for the S&P 500. Don’t miss out on the latest top 10 list, available when you join Stock Advisor.

See the 10 stocks »

*Stock Advisor returns as of May 5, 2025

Suzanne Frey, an executive at Alphabet, is a member of The Motley Fool's board of directors. John Mackey, former CEO of Whole Foods Market, an Amazon subsidiary, is a member of The Motley Fool's board of directors. Leo Sun has positions in Amazon. The Motley Fool has positions in and recommends Alphabet, Amazon, Cloudflare, Five9, and Microsoft. The Motley Fool recommends the following options: long January 2026 $395 calls on Microsoft and short January 2026 $405 calls on Microsoft. The Motley Fool has a disclosure policy.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
BNB Price Reclaims $600 — Is This the Start of a Major Upside Move?BNB price is rising from the $580 support zone. The price is now consolidating gains above $600 and might aim for more gains in the near term. BNB price is attempting to recover above the $615
Author  FXStreet
4 Month 23 Day Wed
BNB price is rising from the $580 support zone. The price is now consolidating gains above $600 and might aim for more gains in the near term. BNB price is attempting to recover above the $615
placeholder
Cronos Price Forecast: CRO bulls aim for higher highs as 21Shares launches new Cronos ETP Cronos (CRO), a Layer 1 blockchain by Crypto.com, is extending its gains. At the time of writing on Wednesday, it was trading around $0.93 after rising nearly 5% so far this week.
Author  FXStreet
5 Month 07 Day Wed
Cronos (CRO), a Layer 1 blockchain by Crypto.com, is extending its gains. At the time of writing on Wednesday, it was trading around $0.93 after rising nearly 5% so far this week.
placeholder
Top 3 gainers EOS, Kaito, Stacks: Navigating the dynamic altcoin marketThe altcoin market is getting more complex to navigate, with fragmented narratives, limited liquidity, and massive token unlocks creating hefty headwinds.
Author  FXStreet
21 hours ago
The altcoin market is getting more complex to navigate, with fragmented narratives, limited liquidity, and massive token unlocks creating hefty headwinds.
placeholder
XRP Price Breaks Key Resistance Level, Eyes Fresh Upside MomentumXRP price found support at $2.080 and started a fresh increase. The price is now gaining pace and might clear the $2.150 resistance zone. XRP price started a recovery wave above the $2.10 zone. The
Author  NewsBTC
21 hours ago
XRP price found support at $2.080 and started a fresh increase. The price is now gaining pace and might clear the $2.150 resistance zone. XRP price started a recovery wave above the $2.10 zone. The
placeholder
Ethereum Price Ready to Surge—$2,000 Level Could Be Within ReachEthereum price started a fresh increase above the $1,800 zone. ETH is now rising and attempting a move above the $1,850 resistance. Ethereum started a fresh recovery wave above the $1,820 resistance.
Author  FXStreet
21 hours ago
Ethereum price started a fresh increase above the $1,800 zone. ETH is now rising and attempting a move above the $1,850 resistance. Ethereum started a fresh recovery wave above the $1,820 resistance.
goTop
quote