Free DCA sample questions

Real questions from the Docker Certified Associate practice bank, with the correct answer and an explanation for each one. No junk, no filler.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 10 of 20 free sample questions.

Question 1Choose 2

You are tasked with securing a Docker environment and want to prevent privilege-escalation attacks. Which of the following actions are considered best practices for achieving this? (Select TWO).

Question 2Choose one

A financial services company is deploying a multi-service application on Kubernetes within a Docker Enterprise environment. A `backend-api` service needs to access a database whose credentials are changed quarterly for compliance. The credentials must not be stored in the container image or in version control. How should the database credentials be provided to the `backend-api` pods in a secure and manageable way?

Question 3Choose one

A new service `webapp` needs to communicate with a `database` service, but it must be completely isolated from all other services and external traffic. Both services will be deployed on the same Docker overlay network. Which sequence of commands correctly sets up this isolated communication?

Question 4Choose one

True or False: When using a multi-stage Dockerfile, artifacts from a previous stage can only be copied into a later stage using the `COPY --from= ` instruction; the `ADD` instruction cannot be used for this purpose.

Question 5Choose one

A system administrator is configuring a new Docker host and wants to ensure that all containers, by default, have their logs sent to a central Splunk server. Where must this configuration be applied to be effective for all newly created containers on the host?

Question 6Choose one

A development team is building a Go application. The build process requires several build-time dependencies and produces a single static binary. The final production image should be as small as possible and contain only the binary and its necessary OS certificates. Which Dockerfile instruction is essential for achieving this goal efficiently?

Question 7Choose one

An administrator needs to perform maintenance on a specific worker node in a Docker Swarm cluster. To prevent the scheduler from placing any new tasks on this node, and to safely drain the existing tasks, which command should be used?

Question 8Choose one

A developer is troubleshooting a container that fails to start. The command `docker logs ` produces no output. The container is running a custom application that is supposed to log to standard output. What is the most likely reason for the empty logs?

Question 9Choose one

You need to create a Docker service that runs exactly one task on every node in the Swarm that has the label `region=us-east`. Which command accomplishes this?

Question 10Choose one

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`?

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.

Create account