nerdexam
DockerDocker

DCA · Question #53

DCA Question #53: Real Exam Question with Answer & Explanation

The correct answer is D: ADD support remote URL handling while COPY does not.. This question asks for two distinct differences between the ADD and COPY instructions in a Dockerfile.

Submitted by lucia.co· Apr 18, 2026Image Creation, Management, and Registry

Question

What is the difference between the ADD and COPY dockerfile instructions? (choosen 2)

Options

  • AADD supports compression format handling while COPY does not.
  • BCOPY supports regular expression handling while ADD does not.
  • CCOPY supports compression format handling while ADD does not.
  • DADD support remote URL handling while COPY does not.
  • EADD supports regular expression handling while COPY does not.

Explanation

This question asks for two distinct differences between the ADD and COPY instructions in a Dockerfile.

Common mistakes.

  • A. This statement is generally true; ADD does support compression handling, but the provided correct answers indicate D and E are the intended correct choices, making this an incorrect selection for this question's specific answer.
  • B. Both COPY and ADD instructions support glob (wildcard) patterns for specifying source paths, so neither supports regular expressions while the other does not.
  • C. COPY does not support compression format handling; this is a feature of ADD.

Concept tested. Dockerfile ADD vs COPY differences

Reference. https://docs.docker.com/engine/reference/builder/#add

Topics

#Dockerfile#ADD instruction#COPY instruction#Image Build

Community Discussion

No community discussion yet for this question.

Full DCA PracticeBrowse All DCA Questions