Microsoft certification · Exam GH-200

GH-200 Mock Exam Page 2

GitHub Actions Exam

Free GH-200 mock exam questions 11–19, each with the answer and an explanation.

19 questions · 29 minutes · free, no sign-up

Free GH-200 questions

11–19 of 19 free
Question 11 Choose 3
As a developer, you need to make sure that only actions from trusted sources are available for use in your GitHub Enterprise Cloud organization. Which of the following statements are true? (Choose three.)
Show answerHide answer

Correct answer: A, B, F Specific actions can individually be enabled for the organization, including version information.GitHub-verified actions can be collectively enabled for use in the enterprise.Actions can be published to an internal marketplace

Question 12 Choose 2
As a developer, your Actions workflow often reuses the same outputs or downloaded dependencies from one run to another. To cache dependencies for a job, you are using the GitHub cache action. Which input parameters are required for this action? (Choose two.)
Show answerHide answer

Correct answer: B, D key: the key created when saving a cache and the key used to search for a cachepath: the file path on the runner to cache or restore

Question 13 Choose 1
A development team has been using a Powershell script to compile and package their solution using existing tools on a Linux VM, which has been configured as a self-hosted runner. They would like to use the script as- is in an automated workflow. Which of the following should they do to invoke their script within a workflow step?
Show answerHide answer

Correct answer: D Use the YAML shell: pwsh in a run step.

Question 14 Choose 1
You are a developer working on developing reusable workflows for your organization. What keyword should be included as part of the reusable workflow event triggers?
Show answerHide answer

Correct answer: C workflow_call

Question 15 Choose 2
What are the two types of environment protection rules you can configure? (Choose two.)
Show answerHide answer

Correct answer: A, C required reviewerswait timer

Question 16 Choose 1
As a developer, you need to integrate a GitHub Actions workflow with a third-party code quality provider that uses the Checks API. How should you trigger a follow-up workflow?
Show answerHide answer

Correct answer: B Add the check_run webhook event as a trigger for the workflow when the code quality integration is completed

Question 17 Choose 1
As a developer, your self-hosted runner sometimes looses connection while running jobs. How should you troubleshoot the issue affecting your self-hosted runner?
Show answerHide answer

Correct answer: C Access the self-hosted runner's installation directory and look for log files in the _diag folder.

Question 18 Choose 3
As a developer, you have a 10-MB data set that is required in a specific workflow. Which steps should you perform so the dataset is stored encrypted and can be decrypted during the workflow? (Choose three.)
Show answerHide answer

Correct answer: A, C, D Encrypt the dataset.Store the dataset in a GitHub encrypted secret.Store the encryption keys in a GitHub encrypted secret.

Question 19 Choose 1
You need to make a script to retrieve workflow run logs via the API. Which is the correct API to download a workflow run log?
Show answerHide answer

Correct answer: C GET /repos/:owner/:repo/actions/runs/:run_id/logs

That's the last free question

You've seen the free 30% (19 of 64 questions). Full access unlocks every question and full-length GH-200 mock exams, a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the GH-200 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real GH-200 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full GH-200 mock exam
  • —questions per mock
  • —time limit
  • 64questions in the bank
  • Newmock on every attempt