Amazon's layoff of 4700 jobs hit engineers hardest, with 40 percent affected. The cuts span cloud, devices, advertising, and retail, driven by AI gains and cost reduction.