Docker Certified Associate (DCA) — Question 5
Is this an advantage of multi-stage builds?
better logical separation of Dockerfile instructions for increased readability
Answer options
- A. Yes
- B. No
Correct answer: A
Explanation
The correct answer is 'Yes' because multi-stage builds allow for a clearer structure in the Dockerfile, making it easier to read and maintain. The option 'No' is incorrect as it overlooks the benefits of improved organization and readability that multi-stage builds offer.