Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam DCA All Questions

View all questions & answers for the DCA exam

Exam DCA topic 1 question 9 discussion

Actual exam question from Mirantis's DCA
Question #: 9
Topic #: 1
[All DCA Questions]

Is this an advantage of multi-stage builds?
better caching when building Docker images

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
b_script
8 months, 3 weeks ago
A. Multi-stage builds in Docker offer better caching mechanisms when building Docker images, which is indeed an advantage. This approach allows Docker to cache the results of individual stages in the build process. If a particular stage hasn't changed (for example, the dependencies installation step), Docker can reuse the cached layer from a previous build instead of executing the instructions again. This can significantly reduce build times, especially for complex builds where certain steps (like installing dependencies) do not change often but take a considerable amount of time to complete.
upvoted 1 times
...
michele91
9 months, 3 weeks ago
I am not sure that's correct. Documentation seems to hint that multi-stage build help with caching: https://docs.docker.com/build/cache/#use-multi-stage-builds
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...