CNNMoney/Richa Naik
Now playing
03:17
Here's why Jamie Dimon turned down a job at Amazon
Google Earth's new timelapse feature
Google
Google Earth's new timelapse feature
Now playing
01:09
Google Earth's new Timelapse feature shows 40 years of climate change in just seconds
Now playing
01:32
Scientists turned spiderwebs into music and it sounds like a nightmare
Elon Musk's Neuralink says this monkey is playing Pong with its mind
From Neuralink/Youtube
Elon Musk's Neuralink says this monkey is playing Pong with its mind
Now playing
01:41
Elon Musk's company says this monkey is playing Pong with his mind
CNN
Now playing
02:36
The truth behind Covid-19 vaccines for sale on the dark web
Now playing
05:41
NFTs have completely transformed these digital artists' lives
Boston Dynamics
Now playing
00:48
Boston Dynamics' newest robot has tentacle-like grippers
Energy and Commerce Committee/YouTube
Now playing
02:50
US lawmakers question tech CEOs on misinformation
Now playing
00:55
This robot's 'self-portrait' NFT just sold for nearly $700,000
Now playing
03:19
Slack CEO: We made an 'unforced error' in DM roll out
WASHINGTON, DC - FEBRUARY 10:  Chairman Sen. Bernie Sanders, (I-VT) speaks as Neera Tanden, President Joe Bidens nominee for Director of the Office of Management and Budget (OMB), appears before a Senate Committee on the Budget hearing on Capitol Hill on February 10, 2021 in Washington, DC. Tanden helped found the Center for American Progress, a policy research and advocacy organization and has held senior advisory positions in Democratic politics since the Clinton administration. (Photo by Andrew Harnik-Pool/Getty Images)
Pool/Getty Images
WASHINGTON, DC - FEBRUARY 10: Chairman Sen. Bernie Sanders, (I-VT) speaks as Neera Tanden, President Joe Bidens nominee for Director of the Office of Management and Budget (OMB), appears before a Senate Committee on the Budget hearing on Capitol Hill on February 10, 2021 in Washington, DC. Tanden helped found the Center for American Progress, a policy research and advocacy organization and has held senior advisory positions in Democratic politics since the Clinton administration. (Photo by Andrew Harnik-Pool/Getty Images)
Now playing
03:04
Sanders: 'I don't feel comfortable' about Trump's Twitter ban
LONDON, ENGLAND - JANUARY 16: Prince Harry, Duke of Sussex, the Patron of the Rugby Football League hosts the Rugby League World Cup 2021 draws for the men's, women's and wheelchair tournaments at Buckingham Palace on January 16, 2020 in London, England. The Rugby League World Cup 2021 will take place from October 23rd through to November 27th, 2021 in 17 cities across England. (Photo by Chris Jackson/Getty Images)
Chris Jackson/Getty Images
LONDON, ENGLAND - JANUARY 16: Prince Harry, Duke of Sussex, the Patron of the Rugby Football League hosts the Rugby League World Cup 2021 draws for the men's, women's and wheelchair tournaments at Buckingham Palace on January 16, 2020 in London, England. The Rugby League World Cup 2021 will take place from October 23rd through to November 27th, 2021 in 17 cities across England. (Photo by Chris Jackson/Getty Images)
Now playing
03:19
BetterUp CEO explains Prince Harry's role at the tech startup
An NFT digital home called Mars House by Krista Kim Studio Inc. has sold for $500,000
From Krista Kim Studio Inc./SuperRare
An NFT digital home called Mars House by Krista Kim Studio Inc. has sold for $500,000
Now playing
01:11
This digital home might cost more than your actual home
Justin Long appeared in Intel's new PC vs Mac commercial as the "PC Guy" (Source: Intel)
Intel
Justin Long appeared in Intel's new PC vs Mac commercial as the "PC Guy" (Source: Intel)
Now playing
01:03
Justin Long switches sides in new Mac vs PC commercials
Rally Studios
Now playing
02:13
One-shot drone video of bowling alley mesmerizes internet
MyHeritage
Now playing
01:01
Watch old photos come to life using AI
(CNN Business) —  

Amazon is spending heavily to keep growing — and that appears to be making investors nervous.

Amazon (AMZN) said Thursday that its profit for the three months ending in September fell to $2.1 billion from $2.9 billion in the same period a year ago, a decline of nearly 28%, as the company invests heavily to expedite deliveries.

Shares of Amazon fell as much as 8% in after-hours trading Thursday as its earnings came in below Wall Street estimates.

The company announced in April that it would spend $800 million in the upcoming quarter to make one-day shipping standard for customers who subscribe to Prime, its membership service. Three months later, Amazon said the actual cost ended up being even higher.

In a statement with its earnings report on Thursday, CEO Jeff Bezos said the investment will be worthwhile in the long run.

“Customers love the transition of Prime from two days to one day — they’ve already ordered billions of items with free one-day delivery this year,” Bezos said. “It’s a big investment, and it’s the right long-term decision for customers.”

The company’s shipping costs for the quarter hit $9.6 billion, up 46% from the prior year, as it worked to cut its standard delivery time for Prime in half.

If that wasn’t enough, Amazon’s headcount grew by nearly 100,000 full-time and part-time employees during the quarter. Amazon held a a career day last month during which it looked to fill more than 30,000 jobs.

The new employees will largely work in fulfillment and transportation roles, amid the shift to one-day shipping, CFO Brian Olsavsky said on a call with analysts Thursday. The company also grew staff at Amazon Web Services (AWS), its cloud computing segment. He said that business has ramped up hiring of sales and marketing personnel as companies and government agencies increasingly look to transition to cloud computing.

But its investments come at a tricky time for Amazon. AWS, one of the company’s key profit drivers, is experiencing slower growth. The division posted nearly $9 billion in sales, up almost 35% from the same time last year, but below the growth it saw in prior quarters.

AWS is the clear leader in cloud computing; its performance follows a larger industry trend of slowing growth as cloud computing becomes more widely adopted. Earlier this week, AWS competitor Microsoft Azure also posted slowing growth — 59% in the three months ending in October, compared to 64% in the prior quarter.