Microsoft

GH-200 practice question 2

GitHub Actions · free question 2 of 20

Question

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 Correct

Explanation

Workflow commands are how actions and run steps communicate with the runner machine to set environment variables, set output values used by other actions, add debug messages to the logs and perform similar tasks. Enabling debug logging only makes extra log output visible, environment variables are just values, and composite steps and self-hosted runners do not provide a channel to the runner.

Practice the whole free set

Answer all 20 free GH-200 questions with instant feedback, or unlock all 106 questions with Learn and Exam modes.