Free GH-200 Practice Test Questions and Answers (2026) | Cert Empire Practice Questions
Free preview: 20 questions.
Microsoft GH 200
Q: 1
Which of the following is the best way for an enterprise to prevent certain marketplace actions from
running?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 2
As a developer, you are optimizing a GitHub workflow that uses and produces many different files.
You need to determine when to use caching versus workflow artifacts. Which two statements are
true? (Choose two.)
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 3
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.)
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 4
What are the two ways to pass data between jobs? (Choose two.)
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 5
You are a developer, and your container jobs are failing on a self-hosted runner. Which requirements
must you check to ensure that the self-hosted runner is properly configured? (Choose two.)
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 6
You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub.
Which workflow event do you use?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 7
Based on the YAML below, which two statements are correct? (Choose two.)


Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 8
Which of the following scenarios requires a developer to explicitly use the GITHUB_TOKEN or
github.token secret within a workflow? (Choose two.)
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 9
What is the minimal syntax for declaring an output named foo for an action?
A)
B)
C)
D)

B)
C)
D)

Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 10
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?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 11
What is the smallest scope for an environment variable?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 12
Without the need to use additional infrastructure, what is the simplest and most maintainable
method for configuring a workflow job to provide access to an empty PostgreSQL database?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 13
As a developer, which workflow steps should you perform to publish an image to the GitHub
Container Registry? (Choose three.)
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 14
As a developer, you have a 10-MB data set that is required in a specific workflow. Which steps should you perform so the dataset is stored encrypted and can be decrypted during the workflow? (Choose three.)
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 15
As a DevOps engineer, you are developing a container action. You need to execute a cleanup script after completing the main script execution. Which code block should be used to define the cleanup script?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Question 1 of 20