Winter Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free Microsoft GH-200 Practice Exam with Questions & Answers

Questions 1

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

Options:
A.

check_suite

B.

workflow_run

C.

deployment

D.

repository_dispatch

Microsoft GH-200 Premium Access
Questions 2

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?

Options:
A.

POST /repos/:owner/:repo/actions/runs/:run_id

B.

GET /repos/:owner/:repo/actions/artifacts/logs

C.

GET /repos/:owner/:repo/actions/runs/:run_id/logs

D.

POST /repos/:owner/:repo/actions/runs/:run_id/logs

Questions 3

Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?

Options:
A.

ENV_ACTOR

B.

GITHUB_WORKFLOW_ACTOR

C.

GITHUB_ACTOR

D.

GITHUB_USER

Questions 4

As a developer, you are using a Docker container action in your workflow. What is required for the action to run successfully?

Options:
A.

The job env must be set to a Linux environment.

B.

The job runs-on must specify a Linux machine with Docker installed.

C.

The referenced action must be hosted on Docker Hub.

D.

The action must be published to the GitHub Marketplace.

Questions 5

You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?

Options:
A.

Create a custom action to wrap the cloud provider ' s CLI.

B.

Search GitHub Marketplace for verified actions published by the cloud provider.

C.

Use the actions/jenkins-plugin action to utilize an existing Jenkins plugin for the cloud provider.

D.

Search GitHub Marketplace for actions created by GitHub.

E.

Download the CLI for the cloud provider and review the associated documentation.

Questions 6

How can a workflow deployment mitigate the risk of multiple workflow runs deploying to a single cloud environment simultaneously?

(Each correct answer presents part of the solution. Choose two.)

Options:
A.

Pass the mutex into the deployment job.

B.

Configure the mutex setting in the environment.

C.

Specify a concurrency scope in the workflow.

D.

Specify a target environment in the deployment job.

E.

Set the concurrency in the deployment job to 1.

F.

Reference the mutex in the task performing the deployment.

Questions 7

As a DevOps engineer, you need to execute a deployment to different environments such as development and testing based on labels added to a pull request. The deployment should use the releases branch and trigger only when there is a change in files under the apps folder. Which code block should be used to define the deployment workflow trigger?

Options:
A.

on: pull_request_review: types: [labeled] branches: - ' releases ' paths: - ' apps/** '

B.

on: pull_request: types: [labeled] branches: - ' releases/** ' paths: - ' apps '

C.

on: pull_request: types: [labeled] branches: - ' releases ' paths: - ' apps/** '

D.

on: pull_request_label: branches: - ' releases ' paths: - ' apps/** '

Questions 8

What is the smallest scope for an environment variable?

Options:
A.

the workflow settings

B.

a step

C.

a job

D.

the workflow env mapping

Questions 9

While awaiting approval, how many days can a workflow be in the “Waiting” state before it automatically fails?

Options:
A.

7 days

B.

14 days

C.

30 days

D.

60 days

Questions 10

As a DevOps engineer, you are developing a composite action. You have a step that needs to be executed against a subdirectory. Which code snippet should you use within the composite action to specify the directory?

Options:
A.

runs: using: " composite " steps: - run: $GITHUB_ACTION_PATH/script.sh directory: ${{ inputs.dir }} shell: bash

B.

runs: using: " composite " steps: - run: $GITHUB_ACTION_PATH/script.sh working-directory: ${{ inputs.dir }} shell: bash

Exam Code: GH-200
Certification Provider: Microsoft
Exam Name: GitHub Actions Exam
Last Update: Dec 2, 2026
Questions: 150