Microsoft GH-200 - GitHub Actions Exam
Page: 2 / 17
Total 85 questions
Question #6 (Topic: Topic 1, Author and maintain workflows
)
You installed specific software on a Linux self-hosted runner. You have users with workflows that need to be able to select the runner based on the identified custom software. Which steps should you perform to prepare the runner and your users to run these workflows? (Each correct answer presents part of the solution. Choose two.)
A. Configure the webhook and network to enable GitHub to trigger workflow.
B. Create the group custom-software-on-linux and move the runner into the group.
C. Inform users to identify the runner with the labels custom-software and linux.
D. Add the label linux to the runner.
E. Inform users to identify the runner based on the group.
F. Add the label custom-software to the runner.
Answer: CF
Question #7 (Topic: Topic 1, Author and maintain workflows
)
You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?
A. workflow_run
B. deployment
C. check_suite
D. repository_dispatch
Answer: D
Question #8 (Topic: Topic 1, Author and maintain workflows
)
In which locations can actions be referenced by workflows? (Each correct answer presents a complete solution. Choose three.)
A. an .action extension file in the repository
B. a published Docker container image on Docker Hub
C. a public NPM registry
D. the runs-on: keyword of a workflow file
E. the repository’s Secrets settings page
F. a separate public repository
G. the same repository as the workflow
Answer: BCF
Question #9 (Topic: Topic 1, Author and maintain workflows
)
Scheduled workflows run on the:
A. specified commit and branch from the workflow YAML file.
B. latest commit from the branch named schedule.
C. latest commit and branch on which the workflow was triggered.
D. latest commit from the branch named main.
E. latest commit on the default or base branch.
Answer: E
Question #10 (Topic: Topic 1, Author and maintain workflows
)
Custom environment variables can be defined at multiple levels within a workflow file including: (Each answer presents a complete solution. Choose three.)
A. top level.
B. step level.
C. default level.
D. runner level.
E. job level.
F. stage level.
Answer: ABE