Amazon inked a $38 billion cloud deal with OpenAI, which sent the stock to the top of the Dow Jones on Monday.