Level 0 exam — harder

Exam — fresh questions

0.1 · Recall

1. What is Docker's real strength compared with a classic installation?

The image packs the code AND its dependencies: the same package runs identically on every machine.
0.1 · Application

2. Idir's site works on his laptop but breaks on the test server (different Node and Redis). What should he do?

Same versioned image on laptop, test and production: same behavior everywhere, one role per container.
0.1 · Arbitration

3. A colleague says: "Docker replaces VMs and monitors everything, let's put it all in one container". Idir's verdict?

Container ≠ VM (shared kernel), one container = one role, and Docker packs/runs without monitoring or backing up.
0.2 · Recall

4. Idir is on Windows and wants to install Docker. What does he pick and check?

Desktop on Windows/macOS (WSL 2 + virtualization), Engine on Linux — always the official packages, a single engine.
0.2 · Application

5. Idir types docker run hello-world and reads the message. What did he just prove?

The ritual crosses the whole chain: image download, container creation and execution.
0.2 · Application

6. After hello-world, Idir wants to read what just happened. Which commands?

images shows the downloaded image, ps -a the finished container: the pull → run → ps trio.
0.3 · Recall

7. Which picture best describes the image / container pair?

The image never changes; each container adds its ephemeral writable layer on top.
0.3 · Application

8. Idir launches web1 and web2 from nginx:1.27, then removes web2. What does he see with ps and images?

One image → N independent containers: rm targets the part, not the mold.
0.3 · Arbitration

9. Idir hesitates between nginx:latest and nginx:1.27 to freeze his tests. What does he decide?

The tag freezes the version (1.27, 16); latest follows the latest publication and breaks reproducibility.
0.4 · Application

10. Idir tests a disposable image and wants no exited ghosts. Which option does he add to run?

--rm removes the container as soon as it stops: no exited containers to purge.
0.4 · Application

11. The demo container runs but stays silent. In which order does Idir diagnose?

Logs to see, exec to enter: most diagnoses stop at the logs.
0.4 · Arbitration

12. Demo must stop and disappear cleanly, check included. Which sequence does Idir validate?

Polite stop (SIGTERM then SIGKILL), husk removal with rm, ps -a as proof — never close the terminal.
What's next?
Back to the guideGuide contents