Last I heard (and I could be wrong), most of Apple's services are hosted by third parties (e.g., Azure). Datacenter hardware at scale is not really something Apple does; in fact there's surprisingly few big players who have the capacity to scale up/out to what Apple require. Even Microsoft parter with others to build out their Azure DCs in terms of the hardware platform.
Apple's cloud services aren't monolithic .
A large bulk of the high bandwidth consuming services like streaming services ( Apple Music , Apple TV ) . app/OS downloads , and static website content is "read only" data. It pays to point folks to mirrored caches that are closer to where they are. That works fine as 100M users can all share the same copy(or copies). That is the kind of scale of data centers that Apple doesn't and probably never should have.
iCloud is probably a different story. The "at rest" storage costs are going to burn money. Properly backing it up even more so. Even more so since lots of "freebie" data storage handed out with iCloud ( no money charges but data stored. ). [ There are services like SmugMug that do "value add" storage on top of Amazon/Google/etc cloud storage but they aren't cheap and certainly largely are not free. iCloud could be a hybrid where the backups go to Apple or some split between how much was in/out. ]
iMessage ... probably not as there some key user state being managed here. the aggregate transaction rate is quite high, but the data is relatively low and there is pragmatically no revenue being generated to pay for either ones of those.
AppleID authentication and security ... probably not a good idea to outsource that.
Same thing with ApplePay ( whole stack needs to be bank security level certified. Maybe some colocatin but not sharing hardware. )
Apple has over 1,000,000 sqr ft of data center space. It isn't like they have paltry resources; just not on the super duper mega scale.
My suspicion is that those services (iCloud, App Store, iTunes Store, etc.) are written in either interpreted or JIT compiled languages on the back-end, talking to database servers running native code on the hosting platform. What that platform is (x86, ARM, Power, etc.), is likely irrelevant.
The app implementation specifics aren't as important as how to do load balancing ( virtual machine/container spin up / spin down) , system performance tuning , etc. Stuff like iCoud Drive isn't going to be stored in a database. ( not relational data. ) . Being able to live migrate some services from one machine to another can mean the different in meeting or missing required service levels.
Not that Apple is permanently stuck on Intel x86_64 , but probably moving from big pod of X to big pod of Y for subservice ABC .
Very high transaction rate, low latency web services like Apple Pay and iMessage highly likely are not interpreted or JIT . It isn't that hard to outsource 150TB per day of grunt data movement and still do 1billion transactions per day in house.