Halloween Special Sale 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale75best

Free Microsoft GH-200 Practice Exam with Questions & Answers

Questions 1

What metadata file in a custom action defines the main entry point?

Options:
A.

action.js

B.

index.js

C.

action.yml

D.

main.yml

Microsoft GH-200 Premium Access
Questions 2

As a developer, what options should you recommend to implement standards for automation reuse? (Choose two.)

Options:
A.

Create workflow templates and store them in the organization ' s .github repository.

B.

Create reusable actions and workflows that can be called from other workflows.

C.

Create a marketplace partition to publish reusable automation for the company.

D.

Store shared corporate actions in subfolders in a defined and documented internally accessible repository.

Questions 3

Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?

Options:
A.

run: echo " ::set-env name=FOO::bar "

B.

run: echo " FOO=bar " > > $GITHUB_ENV

C.

run: echo ${{ $FOO=bar }}

D.

run: export FOO=bar

Questions 4

What is a valid scenario regarding environment secrets?

Options:
A.

Ensuring a job cannot access environment secrets until approval is obtained from a required reviewer.

B.

Ensuring only a specific step can access an environment secret.

C.

Configuring environment secrets for connecting to GitHub Enterprise Server.

D.

Configuring environment secrets to automatically pull from Azure Key Vault.

Questions 5

Which action type should be used to bundle a series of run steps into a reusable custom action?

Options:
A.

Composite action

B.

Bash script action

C.

Docker container action

D.

JavaScript action

Questions 6

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.)

Options:
A.

dependency: the name and version of a package to cache or restore

B.

key: the key created when saving a cache and the key used to search for a cache

C.

cache-hit: the copy action key used with restore parameter to restore the data from the cache

D.

path: the file path on the runner to cache or restore

E.

ref: the ref name of the branch to access and restore a cache created

F.

restore-keys: the copy action key used with cache parameter to cache the data

Questions 7

You are reaching your organization ' s storage limit for GitHub artifacts and packages. What should you do to prevent the storage limit from being reached? (Choose two.)

Options:
A.

Delete artifacts from the repositories manually

B.

Disable branch protections in the repository.

C.

Use self-hosted runners for all workflow runs.

D.

Configure the artifact and log retention period.

E.

Configure the repo to use Git Large File Storage.

Questions 8

As a DevOps engineer, you need to define a deployment workflow that runs after the build workflow has successfully completed. Without modifying the build workflow, which trigger should you define in the deployment workflow?

Options:
A.

repository_dispatch

B.

workflow_run

C.

workflow_exec

D.

workflow_dispatch

Questions 9

Which native method should you use to pass files between jobs within the same GitHub Actions workflow?

Options:
A.

Use artifact storage.

B.

Use job outputs.

C.

Use the copy action with the cache parameter to cache the data.

D.

Use an external blob store

Questions 10

While writing a custom action, some behavior within the runner must be changed. Which workflow commands would set an error message in the runner ' s output?

(Each correct answer presents a complete solution. Choose two.)

Options:
A.

echo " ::error message=There was an error:: "

B.

echo " ::error::There was an error "

C.

echo " ::error file=main.py,line=10,col=15::There was an error "

D.

echo " ::error=There was an error:: "

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