Microsoft GH-200 - GitHub Actions Exam
You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?
You have a GitHub Enterprise Cloud Organization that contains private repositories for three apps. The workflow of each app has a job that uses repository secrets and calls a shared deployment action.
You plan to replace separate deployment scripts with a single custom action.
You need to recommend a distribution and versioning approach for the custom action. The solution must meet the following requirements:
The action repository must be private.
Only specific application repositories can use the action.
The workflow reference must be resistant to changes in the action repository without requiring a workflow file change.
What should you recommend?
As a developer, you want to run a workflow from the Actions tab in GitHub. Which YAML snippet should you use to match the interface in this image?
A)
B)
C)
D)
A workflow that had been working now stalls in a waiting state until failing. The workflow file process_ml.yaml has not changed and contains jobs specifying runs-on: [gpu]. Which of the following steps would troubleshoot the issue?
(Each answer presents a complete solution. Choose two.)
What is the proper syntax to reference the system-provided run number variable?
Which command can you include in your workflow file to set the output parameter for an action?
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?
As a developer, you are using a Docker container action in your workflow. What is required for the action to run successfully?
Which default environment variable specifies the branch or tag that triggered a workflow?
