GITHUB-ACTIONS practice question 14 of 15
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.)
Full set: 72 questionsCorrect Answer:
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.
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.
Keep practicing
Take the free GITHUB-ACTIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GITHUB-ACTIONS practice questions
- Question 1Which statement is true about using default environment variables?
- Question 2Which default GitHub environment variable indicates the owner and repository name?
- Question 3Which workflow event is used to manually trigger a workflow run?
- Question 4Which default GitHub environment variable indicates the name of the person or app that in…
- Question 5You are reaching your organization's storage limit for GitHub artifacts and packages. Wha…
- Question 6Which choices represent best practices for publishing actions so that they can be consume…
