Docker and CI/CD · Middle · Question 33 of 75
Cache vs artifacts in CI: what's the difference?
- 1Artifacts are deleted after every job; cache never expires
- ✓Correct answer: Cache speeds up later runs; artifacts are outputs you keep
- 3Cache stores test reports; artifacts store dependencies
Explanation
A cache miss should only cost time. Build output passed to a deploy job, or test reports, belong in artifacts.