DockerDocker
DCA · Question #127
DCA Question #127: Real Exam Question with Answer & Explanation
The correct answer is A: Yes. Multi-stage Docker builds optimize image size by allowing only the necessary final artifacts from earlier stages to be copied into a lean production image.
Submitted by klara.se· Apr 18, 2026Image Creation, Management, and Registry
Question
Is this an advantage of multi-stage builds? Solution: optimizes Images by copying artifacts selectively from previous stages
Options
- AYes
- BNo
Explanation
Multi-stage Docker builds optimize image size by allowing only the necessary final artifacts from earlier stages to be copied into a lean production image.
Common mistakes.
- B. This is one of the core advantages of multi-stage builds, enabling developers to create smaller and more efficient Docker images for deployment.
Concept tested. Docker multi-stage builds for image optimization
Reference. https://docs.docker.com/build/building/multi-stage/
Topics
#Multi-stage builds#Image optimization#Dockerfile best practices#Image size
Community Discussion
No community discussion yet for this question.