Docker Certified Associate (DCA) — Question 29
You set up an automatic pruning policy on a DTR repository to prune all images using Apache licenses.
What effect does this have on images in this repository?
Answer options
- A. Matching images are untagged once they are older than the pruning threshold set in the repository’s Settings tab.
- B. Matching images are deleted during the next prune job.
- C. Matching images are untagged during the next prune job.
- D. Matching images are untagged during the next prune job, and subsequently deleted once they are older than the pruning threshold set in the repository’s Settings tab.
Correct answer: D
Explanation
The correct answer, D, states that matching images will be untagged and then deleted after they exceed the defined threshold. Options A and C are partially correct but do not mention the deletion aspect. Option B is incorrect as it does not account for the untagging process that occurs first.