Microsoft GH-200 GitHub Actions Exam Exam Practice Test
GitHub Actions Exam Questions and Answers
As a developer, how can you identify a JavaScript action on GitHub?
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, how can you identify a composite action on GitHub?
As a developer, you want to review the step that caused a workflow failure and the failed step ' s build logs. First navigate to the main page of the repository on GitHub. Which section contains the step failure information?
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.)
What is a valid scenario regarding environment secrets?
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 developer, what options should you recommend to implement standards for automation reuse? (Choose two.)
Your organization is managing secrets using GitHub encrypted secrets, including a secret named SuperSecret. As a developer, you need to create a version of that secret that contains a different value for use in a workflow that is scoped to a specific repository named MyRepo. How should you store the secret to access your specific version within your workflow?
Which of the following scenarios would require the use of self-hosted runners instead of GitHub-hosted runners?
Which files are required for a Docker container action in addition to the source code? (Choose two.)
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?
Based on the YAML below, which two statements are correct? (Choose two.)

You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you to implement the conditional execution of the job?
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
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?
What is the smallest scope for an environment variable?
Which of the following statements are true regarding the use of GitHub Actions on a GitHub Enterprise Server instance? (Choose three.)
As a developer, you need to make sure that only actions from trusted sources are available for use in your GitHub Enterprise Cloud organization. Which of the following statements are true? (Choose three.)
What can be used to set a failed status of an action from its code?
How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?
What will the output be for the following event trigger block in a workflow?

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?
What are the two ways to pass data between jobs? (Choose two.)
What is the simplest action type to run a shell script?
As a developer, what is the safest way to reference an action to prevent modification of the underlying code?
While awaiting approval, how many days can a workflow be in the “Waiting” state before it automatically fails?
Which choices represent best practices for publishing actions so that they can be consumed reliably? (Choose two.)
Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?