As a developer, you are optimizing a GitHub workflow that uses and produces many different files. You need to determine when to use caching versus workflow artifacts.
Which two statements are true? (Choose two.)
A . Use caching when reusing files that change rarely between jobs or workflow runs.
B . Use artifacts when referencing files produced by a job after a workflow has ended.
C . Use caching to store cache entries for up to 30 days between accesses.
D . Use artifacts to access the GitHub Package Registry and download a package for a workflow
Answer: A, B
Explanation:
Caching is ideal for files that change rarely, such as dependencies or build outputs, as it speeds up subsequent workflow runs by reusing previously cached files instead of re-downloading or rebuilding them.
Artifacts are used for persisting files produced during a job that need to be used in later jobs or after the workflow has ended, allowing them to be downloaded or referenced later.
Latest GitHub Actions Dumps Valid Version with 72 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund