Free DCA sample questions
These free DCA sample questions each include the answer and an explanation. They cover Swarm services, Dockerfiles and container networking. Use them to check your command and configuration knowledge before you book.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
A container needs to resolve an external domain name, `api.example.com`, which is defined in a corporate DNS server at `10.10.5.5`. How can a developer ensure their container can resolve this domain name when it is started with `docker run`?
The command `docker system prune -a` removes all unused images, not just dangling ones.
A security audit requires that all images used in production are signed and verified before deployment. Which Docker feature must be enabled and configured on both the client and the Docker daemon to enforce this policy?
A stateful application, such as a database, is being deployed as a service on Docker Swarm. The data must persist even if the container is rescheduled to a different node. The underlying storage is a shared NFS volume available on all nodes at `/mnt/nfs/data`. Which `--mount` syntax should be used to ensure data persistence and sharing?
A developer needs to pass a version number into a Docker build process to tag an asset, but this version number should NOT be persisted in the final image's metadata or layers. Which Dockerfile instruction and `docker build` flag combination should be used?
A service is created with `docker service create --publish published=8080,target=80,mode=host nginx`. If this service has tasks scheduled on three different Swarm nodes, what is the outcome?
A user from the 'dev' team in UCP is unable to deploy a new container. A user from the 'ops' team can deploy the same container without issue. The security administrator suspects an RBAC issue. Which of the following UCP components should the administrator investigate to resolve the permission issue for the 'dev' team?
A developer has created a Docker Compose file to define a multi-service application for local development. They now need to deploy this same application to a production Docker Swarm cluster. What is the standard command to accomplish this?
A developer is concerned about the size of a Docker image. They notice that a large temporary file was created and then deleted within the Dockerfile, but the final image size did not decrease as expected. The relevant Dockerfile instructions are: `...` `COPY largefile.tmp /app/` `RUN process_data.sh /app/largefile.tmp` `RUN rm /app/largefile.tmp` `...` Why does the image remain large, and how can this be fixed? graph TD Base["Base Image Layer"] Layer1["Layer 2: COPY largefile.tmp (1GB)"] Layer2["Layer 3: RUN process_data.sh"] Layer3["Layer 4: RUN rm largefile.tmp"] FinalImage[Final Image Size = Sum of all layers] Base --> Layer1 --> Layer2 --> Layer3 --> FinalImage
10 more free samples are waiting
Create a free account to unlock the whole DCA sample bank, or get full access to all 201 practice questions in the simulator.