GitHub Actions Exam
Last Update Oct 24, 2026
Total Questions : 137
We are offering FREE GH-200 Microsoft exam questions. All you do is to just go and sign up. Give your details, prepare GH-200 free exam questions and then go for complete pool of GitHub Actions Exam test questions that will help you more.
Which choices represent best practices for publishing actions so that they can be consumed reliably?
(Each correct answer presents a complete solution. Choose two.)
Disabling a workflow allows you to stop a workflow from being triggered without having to delete the file from the repo. In which scenarios would temporarily disabling a workflow be most useful? (Choose two.)
What will the output be for the following event trigger block in a workflow?
As a developer, what options should you recommend to implement standards for automation reuse? (Choose two.)
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?
Which statement accurately describes using labels to route GitHub Actions workflows to runners?
As a developer, you need to use GitHub Actions to deploy a microservice that requires runtime access to a secure token. This token is used by a variety of other microservices managed by different teams in different repos. To minimize management overhead and ensure the token is secure, which mechanisms should you use to store and access the token? (Choose two.)
What are the two mandatory requirements for publishing GitHub Actions to the GitHub Marketplace? Each correct answer presents part of the solution.
NOTE: Each correct answer is worth one point.
You need to make a script to retrieve workflow run logs via the API. Which is the correct API to download a workflow run log?
You are reaching your organization ' s storage limit for GitHub artifacts and packages. What should you do to prevent the storage limit from being reached? (Choose two.)
How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?
Your organization has a secret that must be available to all the repositories within GitHub Actions workflows.
You need to store the secret. The solution must minimize administrative effort.
What should you do in GitHub?
What are the most significant advantages of adding documentation while distributing custom actions?
(Each answer presents a complete solution. Choose two.)
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
As a DevOps engineer, you need to execute a deployment to different environments like development and testing based on the labels added to a pull request. The deployment should use the releases branch and trigger only when there is a change in the files under apps folder. Which code block should be used to define the deployment workflow trigger?
What menu options in a repository do you need to select in order to use a starter workflow that is provided by your organization?
As a developer, one of your workflows requires Xcode version 11.2 hosted on macOS Catalina (version 10.15). You have already created and configured a self-hosted runner to conform to those requirements and registered it with your organization. What else should you do to ensure that the workflow accesses the correct runner instance?
(Each correct answer presents part of the solution. Choose three.)
A single secret must be accessed by workflows in specific repositories. What is the best way to create the secret?
As a DevOps engineer, you are developing a composite action. You have a step that needs to be executed against a subdirectory. Which code snippet should you use within the composite action to specify the directory?
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.)
Your organization needs to simplify reusing and maintaining automation in your GitHub Enterprise Cloud. Which components can be directly reused across all repositories in an organization? (Choose three.)
As a DevOps engineer, you need to define a deployment workflow that runs after the build workflow has successfully completed. Without modifying the build workflow, which trigger should you define in the deployment workflow?
What is the minimal syntax for declaring an output named foo for an action?
A)
B)
C)
D)
As a developer, what is the safest way to reference an action to prevent modification of the underlying code?
As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an annotation in your Actions?
As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an annotation in your Actions?
When reviewing an action for use, what file defines its available inputs and outputs?
As a developer, your Actions workflow often reuses the same outputs or downloaded dependencies from one run to another. To cache dependencies for a job, you are using the GitHub cache action. Which input parameters are required for this action? (Choose two.)
Which default GitHub environment variable indicates the owner and repository name?
Which of the following is the proper syntax to specify a custom environment variable named MY_VARIABLE with the value my-value?
You are reaching your organization ' s storage limit for GitHub artifacts and packages. What should you do to prevent the storage limit from being reached?
Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?
As a developer, you are using a Docker container action in your workflow. What is required for the action to run successfully?
In the following workflow file, line 5 interprets lines 3 and 4 as Python. Which of the following is a valid option to complete line 5?
1 steps:
2 - run: |
3 import os
4 print(os.environ[ ' PATH ' ])
5
As a developer, you created a JavaScript action. What is the best way to test your JavaScript action?
You are a developer working on developing reusable workflows for your organization. What keyword should be included as part of the reusable workflow event triggers?