(Reuters) - A steeper-than-expected drop in quarterly profit rattled some Amazon.com AMZN.O investors, but Wall Street analysts remained largely bullish about the company's aggressive spending plans.

Shares of the e-commerce juggernaut, which have risen 40 percent this year, were down 4.3 percent at $1,001 in early trading on Friday, wiping out $21 billion from its market value.

The stock touched a record high on Thursday, helping CEO Jeff Bezos briefly unseat Microsoft Inc MSFT.O co-founder Bill Gates as the world's richest person.

“The overall story coming out of Amazon’s second quarter print feels a lot like it did three months ago — accelerating growth, stepped-up investments, lower near-term profitability,” J.P. Morgan analyst Doug Anmuth said.

“But will anyone care about profit when Amazon is taking bigger chunks of market share?”

The world’s largest online retailer reported a better-than-expected rise in revenue, but operating profit came in well short of analysts’ estimate as the company continued to pump in money to expand in international markets such as India.

The company also guided to a possible operating loss for the current quarter.

Amazon, which started as an online bookseller, has forayed into areas that historically had barriers to e-commerce. The company's recent $13.7 billion acquisition of Whole Foods Markets Inc WFM.O is testimony to Bezos' far-reaching ambition.

At least four brokerages, including J.P. Morgan, raised their price targets on the stock.

Morgan Stanley, however, trimmed its price target by $50 to $1,150 based on valuation. The median price target is $1,150, indicating a 9.9 percent upside to Thursday’s close.

Amazon currently trades 115.8 times its 12-months forward earnings. This compares with Microsoft's 22.43 and Alphabet Inc's GOOGL.O 26.45. The two compete with Amazon's market leading cloud computing business, Amazon Web Services (AWS).

PE is widely used on Wall Street to gauge the relative value of stocks although it is not the only such metric.

AWS continued to be the company’s cash cow, bringing in $4.1 billion in sales, a 42 percent jump.

Chief Financial Officer Brian Olsavsky said on a post-earnings call that the AWS unit would expand in France, Sweden and China in the near future.

“We believe the company’s ongoing heavy investments in fulfillment capacity, video content, and AWS are to match with its substantial growth rates, and should not be viewed negatively,” Needham & Co analyst Kerry Rice said, who views the pullback in the stock as a “buying opportunity.”

(This version of the story has been refiled to remove apostrophe from headline)