Pre-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 | Set: 3

Questions 21

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.

Microsoft GH-200 Premium Access
Questions 22

As a developer, you want to run a workflow from the Actions tab in GitHub. Which YAML snippet should you use to match the interface in this image?

GH-200 Question 22

A)

GH-200 Question 22

B)

GH-200 Question 22

C)

D)GH-200 Question 22

GH-200 Question 22

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions 23

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

Questions 24

What are the two most significant advantages of adding documentation while distributing custom actions? Each correct answer presents a complete solution.

NOTE: Each correct answer is worth one point.

Options:
A.

It creates a readme.md for the consuming workflow.

B.

It shares the description of the action to the users.

C.

It provides an example of the action.

D.

It generates auto completion when using the action in a workflow.

Questions 25

You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you to implement the conditional execution of the job?

Options:
A.

jobs:deploy:if: github.ref_name == ' feature-branch ' runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3

B.

jobs:deploy:if: github.ref.name == ' feature-branch ' runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3

C.

jobs:deploy:if: github.branch_name == ' feature-branch ' runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3

D.

jobs:deploy:if: github.branch.name == ' feature-branch ' runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3

Questions 26

What are the two types of environment protection rules you can configure? (Choose two.)

Options:
A.

required reviewers

B.

branch protections

C.

wait timer

D.

artifact storage

Questions 27

GitHub-hosted runners support which capabilities? (Choose two.)

Options:
A.

automatic patching of both the runner and the underlying OS

B.

automatic file-system caching between workflow runs

C.

support for Linux, Windows, and mac

D.

support for a variety of Linux variations including CentOS, Fedora, and Debian

E.

requiring a payment mechanism (e.g., credit card) to use for private repositories

Questions 28

As a developer, how can you identify a JavaScript action on GitHub?

Options:
A.

The action.yml metadata file references a package.json file.

B.

The action ' s repository includes a js.yml file in the .github/workflows directory.

C.

The action’s repository name includes the keyword “JavaScript.”

D.

The action.yml metadata file has the runs.using value set to node16.

Questions 29

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.shdirectory: ${{ inputs.dir }}shell: bash

B.

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

C.

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

D.

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

Questions 30

As a developer, you need to leverage Redis in your workflow. What is the best way to use Redis on a self-hosted Linux runner without affecting future workflow runs?

Options:
A.

Add a run step to your workflow, which dynamically installs and configures Redis as part of your job.

B.

Specify container: and services: in your job definition to leverage a Redis service container.

C.

Set up Redis on a separate machine and reference that instance from your job.

D.

Install Redis on the hosted runner image and place it in a runner group. Specify label: in your job to target the runner group.

Exam Code: GH-200
Certification Provider: Microsoft
Exam Name: GitHub Actions Exam
Last Update: Oct 6, 2026
Questions: 137