GITHUB-ACTIONS · Question #63
What are the two ways to pass data between jobs? (Choose two.)
The correct answer is E. Use job outputs F. Use artifact storage.. Job outputs are used to pass data from one job to another in a workflow. A job can produce output values (like variables or files), which can be referenced by subsequent jobs using the needs keyword and ${{ steps.step_id.outputs.output_name }} syntax. Artifact storage allows data
Question
What are the two ways to pass data between jobs? (Choose two.)
Options
- AUse the copy action with restore parameter to restore the data from the cache
- BUse the copy action to save the data that should be passed in the artifacts folder.
- CUse the copy action with cache parameter to cache the data
- DUse data storage.
- EUse job outputs
- FUse artifact storage.
How the community answered
(57 responses)- A2% (1)
- B5% (3)
- D2% (1)
- E91% (52)
Explanation
Job outputs are used to pass data from one job to another in a workflow. A job can produce output values (like variables or files), which can be referenced by subsequent jobs using the needs keyword and ${{ steps.step_id.outputs.output_name }} syntax. Artifact storage allows data (such as files or results) to be saved by a job and then retrieved by another job in a later step. This is commonly used for passing large amounts of data or files
Topics
Community Discussion
No community discussion yet for this question.