Amazon (AMZN) on Thursday delivered a first-quarter earnings beat, even as caution around its cloud operations weighed on shares in late trading.