Investors are closely watching growth in Amazon’s cloud computing unit, which faces increasing pressure from rivals and artificial intelligence deals.