Amazon.com Inc. shares have been dogged for most of the year by concerns the company’s cloud-computing business was losing ...