The two possibilities of hosting environments allow slightly different deployments. In the cloud (the hosted environment) is built as a self replicating system as a multitenant solution with strict separation of tenants.
In a hosted solution, the provider of the multitenant environment is a data processor too.
In a self hosted environment, this is not required, but the service provider package is built multitenant.
The next graphics displays the high level view on the system