Free DCA: Docker Certified Associate (DCA) Exam Questions and Answers
Docker Certified Associate (DCA) Exam is a Docker certification exam. This page has free DCA practice questions with answers and explanations, set out the way the real exam asks them, plus a timed DCA practice test that scores you against the pass mark.
If you searched for DCA dumps, a DCA ExamTopics discussion or a free DCA PDF, this is the Docker Certified Associate (DCA) Exam question bank: practice questions with verified answers and explanations, a timed DCA practice test and updates whenever Docker changes the exam.
Last updated: October 31, 2026
- Exam code
- DCA
- Provider
- Docker
- Questions in our bank
- 1000+
- Free to read
- First 10, with answers
- Our test mode duration & pass mark
- 130 mins · 70%
- Verified answers
- Reviewed weekly
Recommended: Switch to Test Mode to start a practice test that simulates the real exam experience.
Question #1
An administrator wants to use Go templates when creating a swarm service with `docker service create`. Does each of the following command fragments use templates in a way that the command supports? 1. `--hostname="{{.Node.Hostname}}-{{.Task.Slot}}"` 2. `--label tier={{.Service.Name}}` 3. `--env NODE_ID={{.Node.ID}}`
Answer each statement, then reveal.
- `--hostname="{{.Node.Hostname}}-{{.Task.Slot}}"`Not answered
- `--label tier={{.Service.Name}}`Not answered
- `--env NODE_ID={{.Node.ID}}`Not answered
Correct answer: Yes · No · Yes
Explanation
The `--hostname`, `--env` and `--mount` flags of `docker service create` accept templates such as `{{.Node.Hostname}}`, `{{.Task.Slot}}` and `{{.Node.ID}}`. Other flags, including `--label`, are not expanded, so the label would be stored as the literal text.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #2
An administrator initializes a swarm with `docker swarm init` and adds no extra security options. Is each of the following statements true for the resulting cluster? 1. Communication between swarm nodes is secured with mutual TLS. 2. Traffic between containers on an overlay network is encrypted on the data plane. 3. The first manager acts as the root certificate authority for the swarm.
Answer each statement, then reveal.
- Communication between swarm nodes is secured with mutual TLS.Not answered
- Traffic between containers on an overlay network is encrypted on the data plane.Not answered
- The first manager acts as the root certificate authority for the swarm.Not answered
Correct answer: Yes · No · Yes
Explanation
Swarm enables mutual TLS between nodes by default, and the first manager generates the root CA that issues node certificates. Overlay data plane (application) traffic is not encrypted unless the network is created with `--opt encrypted`.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #3
A swarm has three manager nodes and two worker nodes, all with availability set to active. An administrator must run exactly one task of a monitoring agent image on every node, including any node that joins the swarm later. Which command meets this requirement?
Correct answer: B
Explanation
A global service schedules one task on every eligible node, including nodes added later. A replicated service with five replicas stays at five tasks when the swarm grows, and a replicated service with a per-node cap and no replica count defaults to one replica. The worker constraint would leave the three managers without an agent.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #4
A container named web is attached to two user-defined bridge networks, frontend and backend. Considering the Container Network Model, is each of the following statements correct? 1. The container has one endpoint for each network it is attached to. 2. The network configuration of the container, including its interfaces and routing table, is held in a single sandbox. 3. The IPAM driver is responsible for creating the virtual Ethernet pair that connects the container to each network.
Answer each statement, then reveal.
- The container has one endpoint for each network it is attached to.Not answered
- The network configuration of the container, including its interfaces and routing table, is held in a single sandbox.Not answered
- The IPAM driver is responsible for creating the virtual Ethernet pair that connects the container to each network.Not answered
Correct answer: Yes · Yes · No
Explanation
In the CNM, a sandbox holds the container's network stack and endpoints join the sandbox to networks, so two networks mean two endpoints in one sandbox. The IPAM driver only allocates addresses and subnets, while the network driver creates the connectivity.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #5
An administrator runs `docker run -d --memory 512m --cpus 1.5 --pid=host app1:3.0` on a host that must also pull images from a private registry at registry.example.com:5000 that uses a certificate from an internal CA. Is each of the following statements correct? 1. The 512 MB memory limit is enforced by control groups. 2. The `--cpus 1.5` limit is enforced through the user namespace. 3. Placing the CA certificate at /etc/docker/certs.d/registry.example.com:5000/ca.crt lets the daemon trust that registry.
Answer each statement, then reveal.
- The 512 MB memory limit is enforced by control groups.Not answered
- The `--cpus 1.5` limit is enforced through the user namespace.Not answered
- Placing the CA certificate at /etc/docker/certs.d/registry.example.com:5000/ca.crt lets the daemon trust that registry.Not answered
Correct answer: Yes · No · Yes
Explanation
Control groups limit resources such as memory and CPU, while namespaces provide isolation, so the CPU limit does not come from the user namespace. The daemon reads trusted CA certificates for a registry from a directory under /etc/docker/certs.d named after the registry host and port.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #6
An image named tool:1 is built from this Dockerfile. FROM alpine:3.19 WORKDIR /app COPY server /app/server VOLUME /app/data EXPOSE 8080 ENTRYPOINT ["/app/server"] CMD ["--port", "8080"] Is each of the following statements correct? 1. Running `docker run tool:1 --port 9090` starts /app/server with the argument `--port 9090`. 2. The `EXPOSE 8080` instruction publishes port 8080 on the Docker host when a container starts. 3. A container started without the `-v` option gets an anonymous volume mounted at /app/data. 4. Because ENTRYPOINT uses the exec form, /app/server runs as a child of /bin/sh -c.
Answer each statement, then reveal.
- Running `docker run tool:1 --port 9090` starts /app/server with the argument `--port 9090`.Not answered
- The `EXPOSE 8080` instruction publishes port 8080 on the Docker host when a container starts.Not answered
- A container started without the `-v` option gets an anonymous volume mounted at /app/data.Not answered
- Because ENTRYPOINT uses the exec form, /app/server runs as a child of /bin/sh -c.Not answered
Correct answer: Yes · No · Yes · No
Explanation
Arguments given to `docker run` replace CMD and are appended to the ENTRYPOINT, and VOLUME creates an anonymous volume when no volume is specified. EXPOSE only documents the port and does not publish it, and the exec form runs the program directly without a shell.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #7
Is each of the following statements about the built-in Docker network drivers correct? 1. The bridge driver connects containers that run on different Docker hosts. 2. The macvlan driver lets a container appear on the physical network with its own MAC address. 3. The none driver gives a container a loopback interface and no external network connectivity.
Answer each statement, then reveal.
- The bridge driver connects containers that run on different Docker hosts.Not answered
- The macvlan driver lets a container appear on the physical network with its own MAC address.Not answered
- The none driver gives a container a loopback interface and no external network connectivity.Not answered
Correct answer: No · Yes · Yes
Explanation
A bridge network is local to a single host, so connecting containers across hosts requires overlay or a similar multi-host driver. Macvlan assigns each container its own MAC address on the physical network, and the none driver leaves only the loopback interface.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #8
Is each of the following statements about listing and inspecting images correct? 1. `docker images --filter dangling=true` lists images that have no tag and are not referenced by another image. 2. `docker image inspect --format '{{.Size}}' nginx:latest` reports the image size in megabytes. 3. `docker image inspect --format '{{json .Config.Env}}' nginx:latest` prints the environment variables of the image as JSON. 4. `docker images --filter since=nginx:latest` lists images created after nginx:latest.
Answer each statement, then reveal.
- `docker images --filter dangling=true` lists images that have no tag and are not referenced by another image.Not answered
- `docker image inspect --format '{{.Size}}' nginx:latest` reports the image size in megabytes.Not answered
- `docker image inspect --format '{{json .Config.Env}}' nginx:latest` prints the environment variables of the image as JSON.Not answered
- `docker images --filter since=nginx:latest` lists images created after nginx:latest.Not answered
Correct answer: Yes · No · Yes · Yes
Explanation
The dangling filter, the since filter and Go templates with the json function all work with the image commands. The Size field returned by `docker image inspect` is expressed in bytes, not megabytes.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #9
Which of the following statements about deploying a stack with docker stack deploy are true? For each statement, select Yes or No. 1. The command docker stack deploy -c docker-compose.yml shop creates the services defined in the compose file as part of a stack named shop. 2. The build: key of a service in the compose file is used to build the image on each node during deployment. 3. The command must be run against a swarm manager node. 4. The compose file must be passed with the -f flag.
Answer each statement, then reveal.
- The command docker stack deploy -c docker-compose.yml shop creates the services defined in the compose file as part of a stack named shop.Not answered
- The build: key of a service in the compose file is used to build the image on each node during deployment.Not answered
- The command must be run against a swarm manager node.Not answered
- The compose file must be passed with the -f flag.Not answered
Correct answer: Yes · No · Yes · No
Explanation
docker stack deploy reads the file with -c (--compose-file) and must run on a manager. It ignores build:, so images must already exist in a registry. The -f flag belongs to docker-compose, not to stack deploy.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #10
An image named checker is built from the following Dockerfile. FROM alpine:3.19 RUN apk add --no-cache curl WORKDIR /app COPY check.sh . ENTRYPOINT ["./check.sh"] CMD ["--quiet"] Which of the following statements are true? For each statement, select Yes or No. 1. Running docker run checker --verbose executes ./check.sh --verbose. 2. Running docker run checker --verbose executes ./check.sh --quiet --verbose. 3. The RUN instruction installs curl each time a container is started from the image. 4. The file check.sh is placed at /app/check.sh in the image.
Answer each statement, then reveal.
- Running docker run checker --verbose executes ./check.sh --verbose.Not answered
- Running docker run checker --verbose executes ./check.sh --quiet --verbose.Not answered
- The RUN instruction installs curl each time a container is started from the image.Not answered
- The file check.sh is placed at /app/check.sh in the image.Not answered
Correct answer: Yes · No · No · Yes
Explanation
Arguments given after the image name replace CMD and are appended to the exec-form ENTRYPOINT, so --quiet is dropped. RUN executes at build time and its result is stored in a layer. COPY with a relative destination uses the WORKDIR, giving /app/check.sh.
Continue with DCA: Docker Certified Associate (DCA) Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in DCA: Docker Certified Associate (DCA) Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Discussion
Explain your reasoning, not just the letterReviews
Write a review★★★★★
Exam Practice is worth every penny. The mock exams are realistic, and the feedback helped me focus on key areas.
Amit SharmaVerified buyer
★★★★★
I highly recommend Exam Practice. The feedback after each test helped me improve significantly, and I passed my exams easily.
Oscar NyströmVerified buyer
★★★★★
This platform is a lifesaver. The practice questions and explanations are so detailed. It’s the best study tool I’ve ever used.
Hannah SmithVerified buyer
FAQ
- Q1: What is the DCA: Docker Certified Associate (DCA) Exam exam?
- A: DCA: Docker Certified Associate (DCA) Exam is a Docker certification exam. Judging by the questions in our bank, it concentrates on docker, swarm, container, devicemapper and commands.
- Q2: What topics does the DCA: Docker Certified Associate (DCA) Exam exam cover?
- A: Questions in our DCA: Docker Certified Associate (DCA) Exam bank cluster around docker, swarm, container, devicemapper, commands, image, engine and host. Working through the full set is the quickest way to find which of these you are weakest on.
- Q3: How should I prepare for DCA: Docker Certified Associate (DCA) Exam?
- A: Work through the DCA: Docker Certified Associate (DCA) Exam practice questions here, checking your answer on each one, then sit the practice test to rehearse the exam under timed conditions before the real thing.
- Q4: Are these real DCA: Docker Certified Associate (DCA) Exam exam questions?
- A: They are drawn from officially released past questions and from community members who have sat DCA: Docker Certified Associate (DCA) Exam. Answers are verified and updated weekly.
- Q5: Where do I register for the DCA: Docker Certified Associate (DCA) Exam exam?
- A: Register through Docker directly. Exampractice is not affiliated with Docker and does not administer the exam.
- Q6: Is there a free DCA: Docker Certified Associate (DCA) Exam sample?
- A: Yes. Every DCA: Docker Certified Associate (DCA) Exam page shows a free sample of real questions. Upgrading opens the full bank and the practice test.



