B Y T E B A R

Study Hub / Docker Certified Associate (DCA) / Domain 3.0

Docker Certified Associate (DCA) Domain 3.0: Installation and Configuration — Explained

Domain 3.0 is about the Docker platform itself: installing the engine, choosing storage and logging drivers, and configuring the daemon. Less glamorous than orchestration — and exactly the kind of conceptual material worth understanding deeply.

Exam weight: 15% · Free study preview from ByteBar

The engine and its pieces

Storage drivers: how layers become filesystems

Volumes = Docker-managed persistent storage (production). Bind mounts = host paths (dev convenience). tmpfs = RAM-only (secrets, temp). Pick by lifecycle need.

Logging drivers and daemon hardening

The must-memorize table: data persistence options

Where the data lives determines whether it survives.

OptionManaged bySurvives container removal?Use for
VolumeDockerYesProduction persistent data
Bind mountYou (host path)Yes (it's the host's file)Dev, config injection, host files
tmpfs mountMemoryNoSensitive temp data, never on disk
Container writable layerStorage driverNoEphemeral scratch only

Try it: 4 sample questions

Sample questions to check your understanding of this domain. Answers and full reasoning are tucked under each one.

1. A database container must keep its data after the container is removed and recreated during upgrades. Which storage should it use?

  1. A. A. The container's writable layer — simplest
  2. B. B. A Docker volume — managed persistent storage independent of container lifecycle
  3. C. C. A tmpfs mount — fastest
  4. D. D. ENV variables
Show answer & reasoning

B. Volumes exist independently of any container: remove and recreate the database container and the volume (with the data) reattaches. The writable layer (A) dies with the container; tmpfs (C) dies with the host's RAM; ENV (D) isn't storage at all. "Survive the container" → volume.

2. Container logs are filling the host disk because json-file logging has no rotation configured. What is the fix?

  1. A. A. Switch to the "none" log driver
  2. B. B. Configure log rotation (max-size / max-file) for the json-file driver
  3. C. C. Delete /var/log manually every day
  4. D. D. Run fewer containers
Show answer & reasoning

B. The json-file driver keeps every log line forever unless told otherwise — rotation caps each file's size and count. "None" (A) blinds operations entirely; manual deletion (C) is toil that breaks at 3 AM. Rotation is a daemon.json setting: set it once, forget it.

3. What is the fundamental difference between Linux namespaces and cgroups in container isolation?

  1. A. A. They are the same thing with two names
  2. B. B. Namespaces isolate what a container can see; cgroups limit what it can use
  3. C. C. Namespaces limit CPU; cgroups isolate networks
  4. D. D. Cgroups are a Docker invention; namespaces are Kubernetes
Show answer & reasoning

B. Namespaces = visibility isolation (own process tree, network stack, mount points — the container thinks it's alone). Cgroups = resource limits (CPU shares, memory caps — the container can't hog the host). Both are Linux kernel features Docker assembles; neither is Docker-specific (D).

4. An admin mounts the Docker socket (/var/run/docker.sock) into a container for "convenience." What is the security implication?

  1. A. A. None — the socket is read-only by default
  2. B. B. It's equivalent to root on the host — the container can start privileged containers and escape
  3. C. C. It only allows log reading
  4. D. D. It improves performance
Show answer & reasoning

B. The Docker daemon runs as root, and the socket is the daemon's API: anyone who can talk to it can launch a fully privileged container with host paths mounted — game over. Socket mounts are root-equivalent and must be treated as such. "Convenience" here is a breach waiting for a schedule.

This was one domain. The simulator drills all 6.

This free preview covered Installation & Configuration (Domain 3.0, 15%). Not covered here: Orchestration (Domain 1.0, 25%); Security (Domain 5.0, 15%). Swarm orchestration and Docker security — the most scenario-heavy DCA material — stay in the paid guide and practice bank. The ByteBar Practice Exam Simulator drills every domain with 1,000 exam-style questions — $9.99 one-time unlocks all 28 exams. Prefer to read? The full DCA Study Guide is in the ByteBar shop on Etsy.

Practice Exam Simulator — $9.99 one-time, all 28 exams Full Study Guides on Etsy
Keep learning: ByteBar blog · ByteBar store