GH-200 Practice Test

GH-200 Practice Test practice questions, page 5 of 5, with answer review and explanations.

Question 21

You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?

  1. workflow_run
  2. deployment
  3. check_suite
  4. repository_dispatch

Question 22

In which locations can actions be referenced by workflows? (Each correct answer presents a complete solution. Choose three.)

  1. an .action extension file in the repository
  2. a published Docker container image on Docker Hub
  3. a public NPM registry
  4. the runs-on: keyword of a workflow file
  5. the repository’s Secrets settings page
  6. a separate public repository
  7. the same repository as the workflow

Question 23

Scheduled workflows run on the:

  1. specified commit and branch from the workflow YAML file.
  2. latest commit from the branch named schedule.
  3. latest commit and branch on which the workflow was triggered.
  4. latest commit from the branch named main.
  5. latest commit on the default or base branch.

Question 24

Custom environment variables can be defined at multiple levels within a workflow file including: (Each answer presents a complete solution. Choose three.)

  1. top level.
  2. step level.
  3. default level.
  4. runner level.
  5. job level.
  6. stage level.