Amazon interview question

What is a virtual machine or a container? What differentiates the two?

Interview Answer

Anonymous

18 Jun 2020

A VM or Virtual Machine provides hardware virtualization. A Container provides OS level virtualization. VMs run a complete operating system. A container is a lightweight silo for running an application on the host operating system. You can have several containers running together and if one fails it can be easily removed without interrupting the service.