GH-200 · Question #47
In which of the following scenarios should you use self-hosted runners? (Each correct answer presents a complete solution. Choose two.)
The correct answer is B. when jobs must run for longer than 6 hours C. when a workflow job needs to install software from the local network. Self-hosted runners are appropriate when GitHub-hosted runners cannot meet your requirements. GitHub-hosted runners have a maximum job duration of 6 hours, so jobs needing longer must use self-hosted runners (B). Self-hosted runners run on your own infrastructure, giving them…
Question
In which of the following scenarios should you use self-hosted runners? (Each correct answer presents a complete solution. Choose two.)
Options
- Awhen the workflow jobs must be run on Windows 10
- Bwhen jobs must run for longer than 6 hours
- Cwhen a workflow job needs to install software from the local network
- Dwhen GitHub Actions minutes must be used for the workflow runs
- Ewhen you want to use macOS runners
How the community answered
(61 responses)- A2% (1)
- B92% (56)
- D2% (1)
- E5% (3)
Explanation
Self-hosted runners are appropriate when GitHub-hosted runners cannot meet your requirements. GitHub-hosted runners have a maximum job duration of 6 hours, so jobs needing longer must use self-hosted runners (B). Self-hosted runners run on your own infrastructure, giving them access to your local network resources such as internal package registries or services (C). GitHub-hosted runners already support Windows 10 (A) and macOS (E), so those don't require self-hosted runners. Using GitHub Actions minutes (D) applies to GitHub-hosted runners, not self-hosted ones.
Topics
Community Discussion
No community discussion yet for this question.