The retail and cloud-computing giant beat analyst estimates with a 17% jump in revenue and sharp increase in net profit.