Lets understand cloud computing models with housing analogy
On-Premises: This is like building your own house from scratch, managing everything yourself.
IaaS: This is like hiring a contractor to build a house to your specifications. You manage the software and data but rent the hardware.
Containers as a Service: This is like renting a house and bringing your own furniture. You manage your application but not the underlying operating system.
PaaS: This is like renting a furnished house. You deploy your code but the cloud provider manages everything else.
Function as a Service: This is like renting a desk in a workspace. You deploy a specific function and the cloud provider manages everything else.
SaaS: This is like renting a house and having someone else handle maintenance. You use the software and store your data but the provider manages everything else.