Microsoft GH-200 - GitHub Actions Exam

Question #1 (Topic: Topic 1, Author and maintain workflows )
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
Answer: A
Question #2 (Topic: Topic 1, Author and maintain workflows )
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
Answer: E
Question #3 (Topic: Topic 1, Author and maintain workflows )
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
Answer: A
Question #4 (Topic: Topic 1, Author and maintain workflows )
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
Answer: BC
Question #5 (Topic: Topic 1, Author and maintain workflows )
As a developer, you need to leverage Redis in your workflow. What is the best way to use Redis on a self-hosted Linux runner without affecting future workflow runs?
A. Install Redis on the hosted runner image and place it in a runner group. Specify label: in your job to target the runner group. B. Set up Redis on a separate machine and reference that instance from your job. C. Specify container: and services: in your job definition to leverage a Redis service container. D. Add a run step to your workflow, which dynamically installs and configures Redis as part of your job.
Answer: C
Download Exam
Page: 1 / 17
Total 85 questions