Microsoft GH-200 Actual Exam Questions

Last updated on Nov. 20, 2025.

Topic 1 - Topic 1, Author and maintain workflows

Question #1 Topic 1

How should you print a debug message in your workflow?

  • A. echo "::debug::Set variable myVariable to true"
  • B. echo "Set variable MyVariable to true" >> $DEBUG_MESSAGE
  • C. echo "::add-mask::Set variable myVariable to true"
  • D. echo "debug_message=Set variable myVariable to true" >> &GITHUB_OUTPUT
Reveal Solution Hide Solution   Discussion  

Correct Answer: A 🗳️

Question #2 Topic 1

As a developer, you are designing a workflow and need to communicate with the runner machine to set environment variables, output values used by other actions, add debug messages to the output logs, and other tasks. Which of the following options should you use?

  • A. composite run step
  • B. enable debug logging
  • C. self-hosted runners
  • D. environment variables
  • E. workflow commands
Reveal Solution Hide Solution   Discussion   1

Correct Answer: E 🗳️

Question #3 Topic 1

When should you use the GITHUB_TOKEN in a workflow?

  • A. when you want to make authenticated calls to the GitHub API
  • B. when you want to connect to the runner via SSH
  • C. when you want to access repository-level secrets
  • D. when you want to call an action from the marketplace
Reveal Solution Hide Solution   Discussion   1

Correct Answer: A 🗳️

Question #4 Topic 1

In which of the following scenarios should you use self-hosted runners? (Each correct answer presents a complete solution. Choose two.)

  • A. when the workflow jobs must be run on Windows 10
  • B. when jobs must run for longer than 6 hours
  • C. when a workflow job needs to install software from the local network
  • D. when GitHub Actions minutes must be used for the workflow runs
  • E. when you want to use macOS runners
Reveal Solution Hide Solution   Discussion   1

Correct Answer: BC 🗳️

file Viewing page 1 out of 22 pages.
Viewing questions 1-4 out of 85 questions
Next Questions
Browse atleast 50% to increase passing rate cup
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Loading ...