Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 37 pages
Exam (elaborations)

Docker Certified Associate (DCA) Examination Questions And Correct Answers (Verified Answers) Plus Rationales 2026 Q&A | Instant Download Pdf

Document preview thumbnail
Preview 4 out of 37 pages

Docker Certified Associate (DCA) Examination Questions And Correct Answers (Verified Answers) Plus Rationales 2026 Q&A | Instant Download Pdf

Content preview

Docker Certified Associate (DCA)
Examination Questions And Correct
Answers (Verified Answers) Plus
Rationales 2026 Q&A | Instant
Download Pdf

Question 1
Which Docker component is responsible for building container images?
A. Docker Compose
B. Docker Engine
C. Docker Swarm
D. Docker Hub
Answer: B
Rationale: Docker Engine is the core runtime that builds, runs, and manages
containers. It includes the daemon (dockerd) which executes image builds using
Dockerfiles. Compose is for multi-container definitions, Swarm handles
orchestration, and Docker Hub is a registry, not a build system.


Question 2
What is the default network driver used by Docker containers?
A. overlay
B. bridge

,C. host
D. macvlan
Answer: B
Rationale: The default Docker network driver is bridge, which isolates containers
on a private internal network while allowing controlled external access. Overlay
is used in Swarm, host removes network isolation, and macvlan assigns MAC
addresses.


Question 3
Which command is used to list all running containers?
A. docker ps
B. docker images
C. docker inspect
D. docker run
Answer: C
Rationale: docker inspect is used to display detailed metadata of containers or
images, including configuration and networking information. docker ps lists
running containers, docker images lists images, and docker run starts containers.


Question 4
Which file defines instructions to build a Docker image?
A. docker-compose.yml
B. Dockerfile
C. container.yml
D. image.config
Answer: A

,Rationale: A Dockerfile contains step-by-step instructions for building a Docker
image such as FROM, RUN, COPY, and CMD. Compose files define multi-
container applications, not image builds.


Question 5
What is the purpose of EXPOSE in a Dockerfile?
A. Publishes container ports to host
B. Documents which port the container listens on
C. Opens firewall rules automatically
D. Maps container to external IP
Answer: B
Rationale: EXPOSE is metadata that documents which ports the container listens
on. It does not publish ports automatically; that requires -p or -P at runtime.


Question 6
Which command removes a Docker image?
A. docker rm
B. docker rmi
C. docker delete image
D. docker remove
Answer: B
Rationale: docker rmi removes one or more images from local storage. docker rm
removes containers, not images.


Question 7
Which instruction sets the default command in a Docker container?

, A. RUN
B. ENTRYPOINT
C. CMD
D. START
Answer: C
Rationale: CMD defines the default command executed when a container starts.
ENTRYPOINT defines a fixed executable, while RUN executes commands during
image build.


Question 8
What is the function of Docker volumes?
A. Store container logs only
B. Persist data outside container lifecycle
C. Increase container CPU allocation
D. Encrypt container images
Answer: B
Rationale: Docker volumes provide persistent storage independent of container
lifecycle, ensuring data remains even after container deletion.


Question 9
Which command builds a Docker image from a Dockerfile?
A. docker create
B. docker build
C. docker compile
D. docker make
Answer: D

Document information

Uploaded on
July 3, 2026
Number of pages
37
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$23.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
masterystudyhub
5.0
(1)
Sold
29
Followers
1
Items
9408
Last sold
4 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions