A service task’s container exits. What does swarm do to keep the desired number of replicas?Answer: Starts a new task in place of the failed one. Docker Docs, How services work
A stack’s web service is stuck at 0/3. Which command lists its tasks with their current state and error?Answer: docker service ps --no-trunc shop_web. Docker Docs, docker service ps
A swarm has seven managers. How many of them can fail before the swarm loses its quorum?Answer: Three. Docker Docs, Raft consensus in swarm mode
A three-manager swarm loses two managers for good. What does the admin guide say happens to tasks already running on the workers?Answer: They keep running, but cannot be changed. Docker Docs, Administer and maintain a swarm of Docker Engines
Show all 80 questions
Orchestration, continued
After docker node update --label-add storage=ssd node4, which option places a service only on nodes with that label?Answer: --constraint node.labels.storage==ssd. Docker Docs, docker service create
An update of a service fails. Which command puts the service back to the version it had before?Answer: docker service rollback. Docker Docs, docker service rollback
Every node carries a datacenter label. A service uses --placement-pref spread=node.labels.datacenter. What does the scheduler try to do?Answer: Divide the tasks evenly over the values of the label. Docker Docs, docker service create
In Kubernetes, what is a Deployment used for?Answer: To keep Pods in a wanted state, by ReplicaSets. Kubernetes documentation, Deployments
Two containers are in the same Kubernetes Pod. How do they reach each other over the network?Answer: On localhost: they share one network namespace. Kubernetes documentation, Pods
What does docker inspect --format '{{.LogPath}}' web print?Answer: The path of the container’s log. Docker Docs, docker inspect
What does docker service update --update-parallelism 2 --update-delay 10s SERVICE set?Answer: Two tasks at a time, ten seconds between the groups. Docker Docs, docker service update
Where does a manager normally also run tasks, unless you stop it?Answer: On itself: managers are workers by default. Docker Docs, How nodes work
Which availability keeps a node’s running tasks but gives it no new ones?Answer: Pause. Docker Docs, Manage nodes in a swarm
Which command deploys the services of a Compose file to a swarm under the name shop?Answer: docker stack deploy -c compose.yaml shop. Docker Docs, docker stack deploy
Which command makes one task of a service run on every node that meets the constraints?Answer: docker service create --mode global. Docker Docs, docker service create
Which command, run on a manager, prints the full command a new worker uses to join?Answer: docker swarm join-token worker. Docker Docs, docker swarm join-token
Which Kubernetes object holds non-confidential settings in key-value pairs?Answer: ConfigMap. Kubernetes documentation, ConfigMaps
Which placeholder in docker service create --hostname gives each task the name of the node it runs on?Answer: {{.Node.Hostname}}. Docker Docs, docker service create
Which port must be open between managers for cluster management traffic?Answer: TCP 2377. Docker Docs, Getting started with Swarm mode
You run docker node update --availability drain worker2. What happens?Answer: Its service tasks stop and are started on other nodes. Docker Docs, Drain a node on the swarm
Image creation, management and registry
A Dockerfile has three CMD lines. Which take effect?Answer: Only the last one. Docker Docs, Dockerfile reference
Does EXPOSE 8080 in a Dockerfile make the port reachable from outside the host?Answer: No: it documents the port, and -p publishes it. Docker Docs, Dockerfile reference
How do you start a registry of your own on port 5000?Answer: docker run -d -p 5000:5000 --name registry registry:3. CNCF Distribution, Deploy a registry server
In a multi-stage build, what does COPY --from=build /app/bin /bin/app do?Answer: Copies a file from the stage named build. Docker Docs, Multi-stage builds
What can ADD do that COPY cannot?Answer: Fetch a file from a URL. Docker Docs, Dockerfile reference
What does docker image prune -a remove?Answer: Every image that no container uses. Docker Docs, docker image prune
What is a dangling image?Answer: One with no tag that no container uses. Docker Docs, Prune unused Docker objects
Which command finds images on Docker Hub with at least 100 stars?Answer: docker search --filter stars=100 nginx. Docker Docs, docker search
Which command gives local image app:1 a second name for pushing to registry.example.com:5000?Answer: docker tag app:1 registry.example.com:5000/app:1. Docker Docs, docker image tag
Which command shows the layers of an image with the instruction that made each?Answer: docker image history. Docker Docs, docker image history
Which Dockerfile instruction sets the executable that arguments of docker run are added to?Answer: ENTRYPOINT. Docker Docs, Dockerfile reference
Which experimental option of docker build puts the layers it has just made into a single one?Answer: --squash. Docker Docs, docker image build
Which file keeps folders such as node_modules out of the build context?Answer: .dockerignore. Docker Docs, Build context
Which option of docker build reads the Dockerfile from another path?Answer: -f. Docker Docs, docker image build
Which pair moves an image with its layers and tags to a host with no network?Answer: docker save, then docker load. Docker Docs, docker image save
Why write apt-get update && apt-get install in one RUN instead of two?Answer: A cached update can leave old package lists. Docker Docs, Building best practices
Installation and configuration
A container runs with --log-driver json-file. Which options stop the log from filling the disk?Answer: max-size and max-file. Docker Docs, JSON File logging driver
For a swarm backup, what must be done to the manager before its data folder is copied?Answer: Stop Docker on it. Docker Docs, Administer and maintain a swarm of Docker Engines
What does "live-restore": true in daemon.json do?Answer: Containers keep running while the daemon is down. Docker Docs, Live restore
What does a backup made with Mirantis Kubernetes Engine (the former UCP) leave out?Answer: Swarm services and their overlay networks. Mirantis Kubernetes Engine 3.8, Backup considerations
What does adding a user to the docker group give that user?Answer: Root-level privileges on the host. Docker Docs, Linux post-installation steps for Docker Engine
Where does the daemon look for the CA certificate of a private registry on port 5000?Answer: /etc/docker/certs.d/registry.example.com:5000/ca.crt. Docker Docs, Verify repository client with certificates
Where does the Docker daemon look for its configuration file on a regular Linux install?Answer: /etc/docker/daemon.json. Docker Docs, Docker daemon configuration overview
Which command starts Docker at boot on a systemd Linux?Answer: sudo systemctl enable docker.service. Docker Docs, Linux post-installation steps for Docker Engine
Which folder is the Docker daemon’s data directory on Linux by default?Answer: /var/lib/docker. Docker Docs, Docker daemon configuration overview
Which key in daemon.json makes journald the default logging driver for new containers?Answer: "log-driver": "journald". Docker Docs, Configure logging drivers
Which restart policy brings a container back after the daemon restarts, unless you had stopped it by hand?Answer: unless-stopped. Docker Docs, Start containers automatically
Which two --log-opt settings does the Splunk driver require?Answer: splunk-token and splunk-url. Docker Docs, Splunk logging driver
Networking
A service is published in ingress mode on port 80. A request comes to a node with no task of it. What happens?Answer: The routing mesh sends it to a node with a task. Docker Docs, Use Swarm mode routing mesh
By default, what does the name of a swarm service resolve to on its overlay network?Answer: One virtual IP for the whole service. Docker Docs, Manage swarm service networks
How do you encrypt application data on an overlay network?Answer: docker network create --opt encrypted -d overlay NAME. Docker Docs, Overlay network driver
Two containers are on the default bridge network. How do they differ from two on a bridge you made yourself?Answer: They cannot find each other by name. Docker Docs, Bridge network driver
Which --publish setting bypasses the routing mesh?Answer: mode=host. Docker Docs, Use Swarm mode routing mesh
Which command prints the host port that port 80 of container web is mapped to?Answer: docker port web 80. Docker Docs, docker container port
Which driver gives a container its own MAC address so it looks like a device on the physical network?Answer: macvlan. Docker Docs, Macvlan network driver
Which driver lets containers on different Docker hosts talk over one network?Answer: overlay. Docker Docs, Overlay network driver
Which Kubernetes Service type opens a static port on each node’s IP?Answer: NodePort. Kubernetes documentation, Service
Which option lets a standalone container join an overlay network made for swarm services?Answer: --attachable. Docker Docs, Overlay network driver
Which option of docker run sets an outside DNS server for one container?Answer: --dns 10.0.0.2. Docker Docs, Networking overview
With the host driver, what does -p 8080:80 do?Answer: Nothing: the published port is discarded. Docker Docs, Host network driver
Security
A secret must change. What does Docker ask you to do, since a secret cannot be edited?Answer: Make a new one and update the service to use it. Docker Docs, Manage sensitive data with Docker secrets
By default, how often does a swarm node renew its certificate?Answer: Every three months. Docker Docs, Manage swarm security with public key infrastructure (PKI)
How do the nodes of a swarm prove who they are to each other by default?Answer: Mutual TLS, with certificates from the swarm’s own CA. Docker Docs, Manage swarm security with public key infrastructure (PKI)
In Docker Content Trust, which key is best kept offline because nothing can replace it?Answer: The root (offline) key. Docker Docs, Content trust in Docker
In Mirantis Kubernetes Engine (the former UCP), what three things make a grant?Answer: A subject, a role and a resource set. Mirantis Kubernetes Engine 3.8, Create grants
What does docker swarm update --autolock=true ask of you after a manager restarts?Answer: To give a key to unlock it. Docker Docs, Lock your swarm to protect its encryption key
Where does a Linux service task find a secret it was granted?Answer: In a file under /run/secrets. Docker Docs, Manage sensitive data with Docker secrets
Which daemon setting maps root in a container to an unprivileged user on the host?Answer: userns-remap. Docker Docs, Isolate containers with a user namespace
Which default role of Mirantis Kubernetes Engine (the former UCP) lets a user see resources but not create them?Answer: View Only. Mirantis Kubernetes Engine 3.8, Default roles
Which environment variable makes the Docker client use only signed images?Answer: DOCKER_CONTENT_TRUST=1. Docker Docs, Content trust in Docker
Which port is the usual one for a Docker daemon that is reached over TLS?Answer: 2376. Docker Docs, dockerd
Why is a container’s root user weaker than root on the host?Answer: It starts with a short list of capabilities. Docker Docs, Docker Engine security
Storage and volumes
A container changes one line of a 1 GB file from its image under overlay2. What does the driver do first?Answer: Copies the whole file to the container layer. Docker Docs, OverlayFS storage driver
docker run --mount type=tmpfs,destination=/cache nginx: where is the data kept?Answer: In the host’s memory. Docker Docs, tmpfs mounts
docker run -v data:/db is started and volume data does not exist. What happens?Answer: Docker makes the volume. Docker Docs, Volumes
In Kubernetes, which object does a Pod use to ask for storage of a given size and access mode?Answer: PersistentVolumeClaim. Kubernetes documentation, Persistent Volumes
What is the main difference between a volume and a bind mount?Answer: Docker manages a volume, not a bind mount. Docker Docs, Volumes
Where does what a running container writes go, if no mount is used?Answer: Its own thin writable layer. Docker Docs, Storage drivers
Which classic storage driver do Ubuntu, Debian, Fedora and RHEL use by default?Answer: overlay2. Docker Docs, Select a storage driver
Which command removes unused volumes that have names as well as unnamed ones?Answer: docker volume prune --all. Docker Docs, Prune unused Docker objects
How this list was compiled: Own questions, written to the six domains and weights of the Docker Certified Associate Study Guide, version 1.5, January 2025, which Mirantis links from its exam page, training.mirantis.com (the guide is at a.storyblok.com; both read November 30, 2026). Facts were read on November 30, 2026 at docs.docker.com, kubernetes.io, docs.mirantis.com (Mirantis Kubernetes Engine 3.8, the product that was Docker's Universal Control Plane) and the CNCF Distribution documentation. Each question names the page it was written from and links to it. License: Every question, wrong choice and explanation was written for this site from the public documentation named in each question. Nothing is copied or reworded from the Docker Certified Associate exam, the study guide’s sample questions or another practice product.
How it works
Unofficial practice for the Docker Certified Associate exam: 80 of our own questions in the six domains of its study guide. This site is not affiliated with Mirantis, which runs the exam, or with Docker, and nothing here is taken from the exam.
Read the full guide
The six domains and their weights
The study guide, version 1.5 of January 2025, read on November 30, 2026, gives orchestration 25 percent, images and registry 20, installation and configuration 15, networking 15, security 15, and storage and volumes 10. The questions are shared out the same way.
What a DOMC question is
42 of the 55 questions are discrete option multiple choice. Options come up one at a time, in random order, and you say YES or NO to each. An answer is final: flagging the item does not let you change it. The other 13 are multiple choice, with one or more right.
Here all four options show. To practice for DOMC, judge each one before you read the next.
The guide still says UCP. That product is now called Mirantis Kubernetes Engine.
Questions and answers
How many questions are on the Docker Certified Associate exam?
55 in 90 minutes: 13 multiple choice and 42 discrete option multiple choice, by Mirantis’s exam page. Exam mode here draws 55 of our 80 against a 90-minute clock.
What score passes the DCA exam?
It is not published. The exam page says questions and passing scores may change without notice. You see the result on screen as soon as you finish.
What does the exam cost, and how long is it valid?
$199 or €200 for one attempt, as the exam page read on November 30, 2026. The certification lasts two years. After a fail you wait 14 days and pay again.
Does the exam include Kubernetes?
Yes, in part. The guide lists Pods, Deployments, ConfigMaps and Secrets under orchestration, ClusterIP and NodePort services under networking, and persistent volumes and storage classes under storage.