New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft GH-200 Exam - Topic 2 Question 2 Discussion

Actual exam question for Microsoft's GH-200 exam
Question #: 2
Topic #: 2
[All GH-200 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Workflow commands are special commands that allow you to interact with the runner, set environment variables, output values, add debug messages, and perform other tasks within the workflow. These commands are used to modify the environment or influence the behavior of the GitHub Actions runner.


Contribute your Thoughts:

0/2000 characters
Kimberlie
3 months ago
I’m surprised D isn’t mentioned more often, it’s super useful!
upvoted 0 times
...
Kristian
3 months ago
I think A is better for setting environment variables.
upvoted 0 times
...
Julieta
3 months ago
Totally agree with B, it covers all those tasks!
upvoted 0 times
...
Deeanna
3 months ago
Wait, can you really use C for that? Seems off.
upvoted 0 times
...
Brice
3 months ago
Definitely B, workflow commands are the way to go!
upvoted 0 times
...
Jerry
4 months ago
Enabling debug logging sounds useful, but I don't think it directly relates to setting environment variables or outputting values. I might lean towards workflow commands.
upvoted 0 times
...
Azzie
4 months ago
I feel like self-hosted runners are more about the execution environment rather than setting variables or logging. So, I don't think that's the answer.
upvoted 0 times
...
Louann
4 months ago
I remember practicing a similar question where we had to choose between environment variables and workflow commands. I think workflow commands were the right choice then too.
upvoted 0 times
...
Charlena
4 months ago
I think we might need to use workflow commands for setting environment variables and outputting values, but I'm not entirely sure.
upvoted 0 times
...
Glenn
4 months ago
This is a tricky one. I'm leaning towards workflow commands, but I'm not 100% confident. I know we need to be able to set environment variables and output values, so that seems like the right direction. But I'm not sure if there are other options I'm missing. I'll have to review my notes on this topic before answering.
upvoted 0 times
...
Kenneth
5 months ago
Okay, I've got a strategy here. The question is asking about communicating with the runner, so I need to think about the different ways we can do that. Environment variables and workflow commands both seem relevant, but workflow commands sound like the more comprehensive option that can handle all the tasks mentioned. I'll go with that.
upvoted 0 times
...
Kenny
5 months ago
Hmm, I'm not totally sure about this one. I know we need to communicate with the runner, but I'm not familiar with all the different options like environment variables, workflow commands, and self-hosted runners. I'll have to think this through carefully.
upvoted 0 times
...
Ardella
5 months ago
This looks like a straightforward question about communicating with the runner machine. I think the answer is workflow commands, since that's the option that covers setting environment variables, outputting values, and adding debug messages.
upvoted 0 times
...

Save Cancel