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

Free Microsoft GH-200 Practice Exam with Questions & Answers | Set: 4

Questions 31

Which default environment variable specifies the branch or tag that triggered a workflow?

Options:
A.

GITHUB_TAG

B.

GITHUB_REF

C.

ENV_BRANCH

D.

GITHUB_BRANCH

Microsoft GH-200 Premium Access
Questions 32

As a developer, how should you enable step debug logging for a workflow?

Options:
A.

Include the following code block in your workflow:defaults: ACTIONS_STEP_DEBUG: true

B.

Use the --actions-step-debug flag when calling the workflow.

C.

Set the ACTIONS_STEP_DEBUG secret or variable at the repository level to true.

D.

Include the following code block in your workflow:env: ACTIONS_STEP_DEBUG: true

Questions 33

Your organization needs to simplify reusing and maintaining automation in your GitHub Enterprise Cloud. Which components can be directly reused across all repositories in an organization? (Choose three.)

Options:
A.

self-hosted runners

B.

actions stored m private repositories in the organization

C.

encrypted secrets

D.

custom Docker actions stored in GitHub Container Registry

E.

actions stored in an organizational partition in the GitHub Marketplace

F.

workflow templates

Questions 34

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

Options:
A.

The action ' s repository includes @actions/core in the root directory.

B.

The action ' s repository name includes the keyword " Docker. "

C.

The action.yml metadata file references a Dockerfile file.

D.

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

Questions 35

Custom environment variables can be defined at multiple levels within a workflow file, including which three levels?

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

Options:
A.

Stage level

B.

Default level

C.

Step level

D.

Runner level

E.

Top level

F.

Job level

Questions 36

What are the two ways to pass data between jobs? (Choose two.)

Options:
A.

Use the copy action with restore parameter to restore the data from the cache

B.

Use the copy action to save the data that should be passed in the artifacts folder.

C.

Use the copy action with cache parameter to cache the data

D.

Use data storage.

E.

Use job outputs

F.

Use artifact storage.

Questions 37

What is the most secure way to store sensitive information in GitHub Actions workflows?

Options:
A.

Use environment variables in the workflow and store sensitive data directly in the variables.

B.

From the GitHub repository settings, store sensitive data as unencrypted text.

C.

Store the sensitive information as plain text in the workflow YAML file.

D.

Use GitHub Enterprise Managed User (OIDC) integration to dynamically fetch secrets from a third-party secrets manager.

Questions 38

As a developer, which of the following snippets will enable you to run the commands npm ci and npm run build as part of a workflow?

Options:
A.

- run: | npm ci npm run build

B.

- shell: npm ci npm run build

C.

- shell: | npm ci npm run build

D.

- run: npm ci npm run build

Questions 39

Which workflow command would output the debug message " action successfully debugged " ?

Options:
A.

echo :debug::message=action successfully debugged "

B.

echo " debug-action successfully debugged "

C.

echo " ::debug::action successfully debugged "

D.

echo " :debug:action successfully debugged: "

Questions 40

You have a GitHub Enterprise Server instance that hosts a custom action repository named action1. Production workflows use the actions in action1 as action1@vl. The current stable release of action1 is vl.8.4.

You need to publish a new release of action1 with version number v2.0.0 that changes an input name and includes release assets. The solution must meet the following requirements:

• Ensure that existing consumers of v1 continue to receive backward-compatible updates.

• Prevent changes to the published V2.0.0 release assets and release tag after publication.

What should you do for each requirement? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

GH-200 Question 40

Options:
Exam Code: GH-200
Certification Provider: Microsoft
Exam Name: GitHub Actions Exam
Last Update: Nov 18, 2026
Questions: 150