0
0
Intro to Computingfundamentals~20 mins

Virtualization and containers concept in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Virtualization and Containers Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Virtual Machines vs Containers

Which of the following best explains the main difference between a virtual machine (VM) and a container?

AVMs and containers are the same; both run applications directly on the host without isolation.
BA container runs a full operating system on virtualized hardware, while a VM shares the host OS kernel and isolates applications.
CA VM runs a full operating system on virtualized hardware, while a container shares the host OS kernel and isolates applications.
DBoth VMs and containers run full operating systems but containers use more resources than VMs.
Attempts:
2 left
💡 Hint

Think about what is virtualized in each technology: hardware or operating system.

trace
intermediate
2:00remaining
Trace Container Startup Process

Consider this simplified flowchart of starting a container:

  1. Host OS starts container runtime
  2. Runtime creates container namespace
  3. Container process starts using host kernel
  4. Application runs inside container

Which step ensures the container's file system and network are isolated from the host?

AStep 1: Host OS starts container runtime
BStep 2: Runtime creates container namespace
CStep 3: Container process starts using host kernel
DStep 4: Application runs inside container
Attempts:
2 left
💡 Hint

Namespaces isolate resources like file systems and networks.

Comparison
advanced
2:00remaining
Resource Usage Comparison

Which statement correctly compares resource usage between virtual machines and containers?

AContainers use less memory and start faster because they share the host OS kernel, unlike VMs which run full OS instances.
BVirtual machines use less CPU than containers because they run on virtual hardware.
CContainers require more disk space than virtual machines because they include the entire OS.
DVirtual machines start faster than containers because they do not need to isolate processes.
Attempts:
2 left
💡 Hint

Think about what each technology needs to load to start running.

identification
advanced
2:00remaining
Identify the Container Technology

Which technology uses cgroups and namespaces to isolate applications without running a full guest OS?

AHypervisor-based Virtual Machine
BEmulator
CBare-metal Server
DContainerization
Attempts:
2 left
💡 Hint

It isolates applications but shares the host OS kernel.

🚀 Application
expert
3:00remaining
Choosing Virtualization for a Multi-OS Environment

You need to run multiple different operating systems on one physical server for testing. Which approach is best and why?

AUse virtual machines because they can run different OSes independently on virtual hardware.
BUse containers because they share the host OS and can run any OS inside them.
CUse bare-metal servers because they allow running multiple OSes on the same hardware simultaneously.
DUse containers because they provide full hardware virtualization for each OS.
Attempts:
2 left
💡 Hint

Consider if the OSes need different kernels or full OS environments.