Amazon reported another record quarterly profit on Thursday, fueled by the growth of online shopping and its cloud-computing service.