Part 6 of 6 · 2 min read
Exercises
Easy
Easy 1: VM or container (20 minutes)
Make a table comparing a VM and a container on start time, isolation, size and what is shared.
Done when: a four-row table.
Hint
Think kernel, boot time and memory.
Easy 2: Choose isolation (20 minutes)
Decide VM or container for: your own web service, code uploaded by strangers, a batch job from your team.
Done when: three choices with a reason.
Hint
Ask whether you trust the code.
Easy 3: Image or container (20 minutes)
Explain the difference with an analogy of your own, and say which one is stored in the registry.
Done when: a short explanation.
Hint
A recipe and a cooked meal.
Medium
Medium 1: Packing (30 minutes)
A host has 64 GB. A service needs 2 GB. A VM adds 1 GB of operating system, and a container adds 0.1 GB. Compute how many fit in each case.
Done when: two numbers with the working.
Hint
Each unit needs 3 GB or 2.1 GB.
Medium 2: Desired state (30 minutes)
Write the desired state for a service with 4 copies, then trace what the orchestrator does when 1 node of 4 fails.
Done when: a numbered trace with times.
Hint
The orchestrator compares desired with actual.
Medium 3: State outside (30 minutes)
A container stores uploaded files on its own disk. Explain what is lost on restart and propose two fixes.
Done when: a loss statement and two designs.
Hint
Think volumes or object storage.
Hard
Hard 1: Is Kubernetes needed (45 minutes)
A team has 3 services and 4 engineers. Write the case for and against adopting an orchestrator, with a decision.
Done when: a one-page memo.
Hint
Count the people needed to run it.
Hard 2: Release on an orchestrator (45 minutes)
Map the stages of module 4 (canary, bake, rollback) onto orchestrator features. State what the pipeline still must do.
Done when: a two-column mapping.
Hint
Rolling update, readiness checks and rollback.
Hard 3: Isolation review (50 minutes)
A platform runs customer plug-ins in containers. List attack paths from this page, and propose layers to reduce the risk.
Done when: a threat list with three mitigations.
Hint
Add a VM boundary or a sandbox layer.