1.Explain the difference between containers and virtual machines
Answer
Containers share the host OS kernel with isolated user spaces, making them lightweight (megabytes, millisecond start) and portable. Virtual machines virtualize full hardware with a guest OS each, giving stronger isolation at the cost of gigabytes and slower boot. Use containers for dense microservices and VMs, or containers on VMs, for strong multi-tenant isolation.