Skip to content

Storage and Volumes Questions

Practice questions for Storage and Volumes topic in Docker Certified Associate. 20 questions covering this domain.

20 questions8 easy8 medium4 hard
Q1
easy

A container writes uploaded files into its writable layer and is then removed. What happens to that data if no volume or bind mount was used?

Q2
medium

A replicated service uses the local volume driver for application state on three different swarm nodes. Which statement is accurate?

Q3
medium

Why does Docker recommend volumes over writing heavily into a container's writable layer for persistent application data?

Q4
easy

Which mount type stores data in host memory and does not persist across container stop, restart, or host reboot?

Q5
medium

A developer uses a bind mount so the host and container can edit the same source files during local development. Which tradeoff is important to rememb...

Q6
medium

An operator mounts an empty named volume over a non-empty container path but wants to prevent Docker from copying the existing container files into th...

Q7
medium

Why does Docker warn against manipulating volume contents directly from the host filesystem behind Docker's back?

Q8
easy

Which mount option makes a bind mount read-only inside the container?

Q9
hard

A service mount uses `volume-subpath=/reports/2026`, but that directory does not yet exist inside the named volume. What should the operator expect?

Q10
easy

When a bind mount is created without `readonly` or `ro`, what is the default access mode to the host path?

Q11
medium

Which statement correctly describes container writable layers and image layers?

Q12
easy

Which command removes unused volumes from a Docker host?

Q13
hard

A non-empty named volume is mounted over a non-empty directory already present in the container image. What is the visible effect inside the running c...

Q14
hard

A swarm service needs a volume mount that includes driver options. Which mount syntax should be used?

Q15
easy

What happens to an anonymous volume when the container that uses it is removed normally without `--rm`?

Q16
medium

Which statement about bind propagation and volumes is accurate?

Q17
easy

Which statement best describes named volumes compared with bind mounts?

Q18
medium

What is the default bind propagation mode for bind mounts in Docker?

Q19
hard

A replicated service needs the same persistent dataset to be available from tasks running on different nodes. Which approach is required?

Q20
easy

Why are volumes often easier to back up or migrate than bind mounts?

Sign in to see all 20 questions

Create a free account to browse all questions — completely free during our launch phase.