Shares of Amazon surged 11% after growth in its cloud, AI and chips divisions; while Apple shares fell 8% after the company's forecast disappointed investors.