Exam — fresh questions
- 12 brand-new questions: recall + application + arbitration on Dockerfile, build, tags, configuration and security.
- Answer everything, then click Check: your score and explanations will appear.
2.1 · Application
2. Idir writes his first Node Dockerfile. Which order is correct?
Base, folder, code, install at build time, declared port, launch at run time.
What's next?- Score ≥ 80%: move to Level 3 — Compose and multi-container stacks, keeping your reflexes (lean Dockerfile, frozen tags, config outside the image, non-root).
- Score 60-79%: revisit the failed sections (2.1 RUN/CMD, 2.2 cache and multi-stage, 2.3 immutable tags, 2.4 ARG/ENV, 2.5 non-root and secrets) and redo the 48h challenges.
- Score < 60%: rebuild Idir's app step by step (7-line Dockerfile, cache + multi-stage, push 1.0.0, ENV PORT, USER + scan), then retake the test.
- In any case: keep the reflexes — RUN builds and CMD starts, stable first, frozen tags, config outside the image, zero embedded secrets.
Back to the guideGuide contents