THINK FIRST·CODE LATER

← Operating Systems
Chapter 12 · Week 13

Virtualization, Containers and Cloud Resource Management

Answered 0/30 Correct 0
Sign in to save progress across devices
Q1

Which is a type 1 hypervisor?

Q2

In trap-and-emulate virtualization, what happens when the guest kernel executes a privileged instruction?

Q3

What does paravirtualization change?

Q4

With nested paging and 4-level page tables in both the guest and the host, how many memory references can a TLB miss require in the worst case?

Q5

A host has 64 physical cores and runs VMs with 256 vCPUs in total. What is the CPU overcommit ratio, and why does it usually work?

Q6

What is memory ballooning?

Q7

Which kernel features create a Linux container?

Q8

Why can a vulnerability in the Linux kernel be more dangerous for containers than for VMs?

Q9

Ten containers run from the same 500 MB image. Approximately how much disk space do the image layers use?

Q10

In Kubernetes, which value does the scheduler use to decide whether a pod fits on a node?

Q11

A pod has requests equal to limits for both CPU and memory. What is its QoS class?

Q12

A container has cpu.max = 20000 100000 (0.2 CPU). A single-threaded request needs 50 ms of CPU and arrives at the start of a period. When does it finish?

Q13

A 4-thread service has a CPU limit of 1 CPU (100 ms per 100 ms period). A request uses all 4 threads for 50 ms each. When does it finish?

Q14

Hosts have 10 CPUs. VMs need 2, 5, 4, 7, 1, 3 and 8 CPUs (in that order). How many hosts does first fit use?

Q15

Why does sorting VMs in decreasing size before first fit usually help?

Q16

Power model: 100 W idle, 250 W at full load, linear in CPU utilization. What does a host at 60 % utilization draw?

Q17

What is the main risk of aggressive consolidation (packing VMs tightly and switching hosts off)?

Q18

HPA with a target of 60 % CPU. 3 replicas run at 100 %. How many replicas does the HPA request?

Q19

HPA target 60 %; 8 replicas run at 25 %. What does the HPA request (minimum 1)?

Q20

Why do autoscaled services usually target 50–70 % CPU instead of 95 %?

Q21

What is a cold start in serverless computing?

Q22

Increasing a serverless platform's keep-alive time has which effect?

Q23

Two tenants' VMs on the same host both have CPU and memory limits, yet one tenant's latency doubles when the other runs a memory-intensive job. What is this called?

Q24

What did Intel VT-x and AMD-V add to x86 processors?

Q25

Why do cloud GPU instances usually use device pass-through (or SR-IOV) instead of emulated devices?

Q26

Under memory pressure on a Kubernetes node, which pods are evicted first?

Q27

How do micro-VMs such as AWS Firecracker combine the advantages of VMs and containers?

Q28 Short answer

Place VMs A (2 CPU, 4 GB), B (5, 8), C (4, 4), D (7, 8), E (1, 2), F (3, 4), G (8, 4) on identical hosts with 10 CPUs and 32 GB using first fit (in the given order) and first fit decreasing (sorted by dominant normalized demand, largest first). For each, list the hosts' contents, the number of hosts and the total power (100 W idle + 150 W × CPU utilization per powered host). What is the lower bound on the number of hosts?

Q29 Short answer

Simulate the HPA (target 60 %, min 1, max 10, each pod serves 100 requests/s at 100 % CPU, starting with 2 replicas) for the load sequence 80, 150, 300, 450, 450, 200, 100, 60 requests/s (the new replica count applies at the next step). Give utilization and desired replicas at each step. What weaknesses of reactive autoscaling does this show?

Q30 Short answer

EdgeCampus must choose between (a) one VM per student research project on the edge GPU servers, (b) containers in Kubernetes on bare-metal edge servers, and (c) containers inside per-department VMs. Compare them for startup time, density, isolation between students, GPU sharing and operations effort, and recommend one.