Amazon.com.'s revenue growth and investments have for years come at the expense of profit.Now, the retail giant appears to have exhibited more discipline to preserve its bottom line.