EduFlow
Docker & Kubernetes: Ship with Confidence

Checkpoint: Containers from First Principles

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

You run notes-api with docker run --memory 256m. Under a load test the container dies and docker ps -a shows Exited (137). What enforced the limit?

Question 2 of 5

You change one line in src/server.ts and rebuild this image. Roughly how long does the build take compared with an unchanged rebuild?

Dockerfile
FROM node:24-slim
WORKDIR /app
COPY . .
RUN npm ci
RUN npm run build
Question 3 of 5

notes-api runs with CMD ["node", "dist/server.js"] and has no SIGTERM handler. What does docker stop do?

Question 4 of 5

You run docker run -d -p 3000:3000 notes-api:dev. The logs say listening on 3000, but curl localhost:3000 from your laptop gets connection reset. What do you check first?

Question 5 of 5

Which statement about images and containers is correct?

5 questions unanswered