Question 1
Which Dockerfile instruction sets the base image for a build?
Correct Answer:
FROM
Question 2
What is the difference between the COPY and ADD instructions in a Dockerfile?
Correct Answer:
ADD supports URL sources and automatic tar extraction; COPY only copies local files and directories
Question 3
What is the purpose of the RUN instruction in a Dockerfile?
Correct Answer:
Executes a command in a new layer on top of the current image and commits the result
Question 4
What is the difference between CMD and ENTRYPOINT in a Dockerfile?
Correct Answer:
ENTRYPOINT defines the fixed executable; CMD provides default arguments that can be overridden at runtime
Question 5
What does the EXPOSE instruction in a Dockerfile do?
Correct Answer:
Documents which port the container listens on at runtime but does NOT publish it to the host
Question 1
Exam overview

About this Exam

Prepare with the DCA Practice Questions - Docker Certified Associate (DCA) Exam - Variant 1 practice quiz. This question bank includes 100 questions covering docker, swarm, dockerfile, command, and network. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

DCA Practice Questions - Docker Certified Associate (DCA) Exam - Variant 1

This practice set contains 100 questions from the matching question bank and focuses on docker, swarm, dockerfile, command, and network. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions