nerdexam
Microsoft

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…

Manage self-hosted runners

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)
  • A
    2% (1)
  • B
    92% (56)
  • D
    2% (1)
  • E
    5% (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

#Self-hosted runners#GitHub-hosted runners#Runner capabilities#Workflow execution environment

Community Discussion

No community discussion yet for this question.

Full GH-200 Practice