QuizzesDocker Internals — Namespaces, cgroups & OverlayFS — Concept Check
intermediate
docker

Docker Internals — Namespaces, cgroups & OverlayFS — Concept Check

Questions on Docker Internals — Namespaces, cgroups & OverlayFS. Docker containers are not magic — they are Linux processes with namespace isolation, cgroup resource limits, and an OverlayFS layered filesystem. Understanding internals helps you debug, optimise, and reason about security.

7 minutes 7 questions Pass at 70%
Time Limit
7 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

7 questions on Docker Internals — Namespaces, cgroups & OverlayFS — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A Docker container is running an application and you notice high CPU usage. The container was started with `--cpus=1.5`. What should you expect if the application tries to use more CPU than allocated?

    • AThe container will use more than 1.5 CPU cores temporarily.
    • BThe container will crash due to CPU limit.
    • CThe container will be throttled to 1.5 CPU cores.
    • DThe container will stop accepting new requests.
  2. 2.A developer complains that a Docker container's file changes are not visible in another container. Both containers use the same base image. Why is this happening?

    • AThe base image is corrupted.
    • BOverlayFS is not functioning properly.
    • CEach container has its own writable layer.
    • DThe containers are on different networks.
  3. 3.You notice that a Docker container is killed with exit code 137. What is the likely cause?

    • AThe container exceeded its CPU limit.
    • BThe container exceeded its memory limit.
    • CThe container's network was misconfigured.
    • DThe container was manually stopped.
  4. 4.A Docker container is running with `--memory=512m --memory-swap=512m`. What happens if the application inside tries to allocate more than 512MB of memory?

    • AThe container uses swap memory.
    • BThe container's CPU usage increases.
    • CThe container is killed due to OOM.
    • DThe container continues running without issues.
  5. 5.An engineer notices that a container's hostname is different from the host machine's hostname. What Docker feature explains this behavior?

    • AUTS namespace provides isolated hostnames.
    • BPID namespace isolates process IDs.
    • COverlayFS isolates file changes.
    • Dcgroups limit resource usage.
  6. 6.A container is configured with `--cpu-shares=512`. If the host CPU is contested, what does this setting imply?

    • AThe container is given priority over others.
    • BThe container uses exactly 512 CPU units.
    • CThe container is limited to 512 CPU cycles per second.
    • DThe container receives half the CPU time compared to default.
  7. 7.You inspect a Docker container and see `pid:[4026532349]`. What does this indicate about the container's process IDs?

    • AThe container's PID is limited to 4026532349.
    • BThe container shares PID namespace with the host.
    • CThe container has its own isolated PID namespace.
    • DThe container's PID namespace is corrupted.