While Twitter hosts some services on its own servers, the company has long contracted with Google and Amazon to complement its infrastructure. Prior to Musk buying Twitter last year, the company signed a multi-year contract with Google to host services related to fighting spam, removing child sexual abuse material, and protecting accounts, among other things.
No they have contracts with all of them because of acquisitions and attempts to be less reliant on just the data centers. Google cloud was another attempt to move some workloads or extend into it. But like I said earlier, nothing significant. Real work is done on the data center machines