EduFlow
Docker & Kubernetes: Ship with Confidence

Checkpoint: Production-Grade Images

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

notes-api’s runtime stage has COPY --from=build /app/dist ./dist and COPY --from=deps /app/node_modules ./node_modules, but starting the container fails with Cannot use import statement outside a module. What’s missing?

Question 2 of 5

Your security team requires that the notes-api process can’t modify its own code even if an attacker gets remote code execution. Which Dockerfile choice delivers that?

Question 3 of 5

A CI job builds notes-api on an amd64 runner and deploys it to a cluster of arm64 nodes. Pods fail with exec format error. What’s the fix?

Question 4 of 5

Your registry has notes-api:1.4.0. A hotfix is ready. What should you tag it?

Question 5 of 5

docker scout cves reports a critical CVE in an npm package that notes-api uses, and a fixed version exists. What’s the right response?

5 questions unanswered