YouTube is of course obviously safe.
Google Cloud as a whole is also safe. It's the individual given products you have to worry about disappearing. It's already a very large business. Even in third place it's going to be at least a $15-$20 billion business over time. They're not shutting that down.
https://www.businessinsider.com/google-cloud-arr-earnings-8-...