Amazon.com Inc. shares zoomed higher in extended trading Thursday after the company posted its biggest quarterly profit since 2021, but shares turned around after the company’s chief financial officer said in a conference call that cloud revenue is decelerating in the current quarter.