The company’s shares surged as much as 14% on strong sales in its cloud business AWS.