GH-200 Exam Details

  • Exam Code
    :GH-200
  • Exam Name
    :GitHub Actions
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :98 Q&As
  • Last Updated
    :Jul 14, 2026

Microsoft GH-200 Online Questions & Answers

  • Question 1:

    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

  • Question 2:

    Which of the following scenarios requires a developer to explicitly use the GITHUB_TOKEN or github.token secret within a workflow? (Choose two.)

    A. passing the GITHUB_TOKEN secret to an action that requires a token as an input
    B. making an authenticated GitHub API request
    C. checking out source code with the actions/checkout@v3 action
    D. assigning non-default permissions to the GITHUB_TOKEN

  • Question 3:

    Which of the following is a valid reusable workflow reference?

    A. uses: octo-org/another-repo/workflow.yml@v1
    B. uses: octo-org/another-repo/.github/workflows/workflow.yml@v1
    C. uses: another-repo/.github/workflows/workflow.yml@v1
    D. uses: another-repo/workflow.yml@v1

  • Question 4:

    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.)

    A. Review the contents of the Runner_*.log files in the _diag folder.
    B. Increase the usage limits for the GitHub-hosted runners.
    C. Check the “Set up job” step for the logs of the last successful run to determine the runner.
    D. Update the org settings to enable GPU-based GitHub-hosted runners.
    E. Rotate the GITHUB_TOKEN secret for the appropriate runners.

  • Question 5:

    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? (Each correct answer presents a complete solution. Choose three.)

    A. Actions can be published to an internal marketplace.
    B. GitHub-verified actions can be collectively enabled for use in the enterprise.
    C. Specific actions can individually be enabled for the organization, including version information.
    D. Actions can be restricted to only those available in the enterprise.
    E. Individual third-party actions enabled with a specific tag will prevent updated versions of the action from introducing vulnerabilities.
    F. Actions created by GitHub are automatically enabled and cannot be disabled.

  • Question 6:

    What is the right method to ensure users approve a workflow before the next step proceeds?

    A. creating a branch protection rule and only allow certain users access
    B. granting users workflow approval permissions
    C. adding users as required reviewers for an environment
    D. granting users repository approval permission

  • Question 7:

    Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?

    A. run: echo "::set-env name=FOO::bar"
    B. run: echo "FOO=bar" >> $GITHUB_ENV
    C. run: echo ${{ $FOO=bar }}
    D. run: export FOO=bar

  • Question 8:

    Which of the following is the best way for an enterprise to prevent certain marketplace actions from running?

    A. Create a list of the actions that are restricted from being used as an enterprise policy. Every other action can be run.
    B. It is not possible; if an action is in the marketplace, its use cannot be restricted.
    C. Create a list that is maintained as a . yml file in a . github repository specified in the enterprise. Only these actions can be run.
    D. Create a list of the actions that are allowed to run as an enterprise policy. Only these actions can be run.

  • Question 9:

    You are designing a reusable workflow that other repositories will use. What’s required for others to access it?

    A. It must be stored in .github/workflows/ and the repo must be public or internal
    B. It must include an action.yml file
    C. It must be listed in GitHub Marketplace
    D. It must be stored in .github/actions/

  • Question 10:

    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?

    A. jobs: deploy: if: github.ref_name == 'feature-branch' runs-on: ubuntu-latest steps: -uses: actions/checkout@v3
    B. jobs: deploy: if: github.branch.name == 'feature-branch' runs-on: ubuntu-latest steps: -uses: actions/checkout@v3
    C. jobs: deploy: if: github.ref.name == 'feature-branch' runs-on: ubuntu-latest steps: -uses: actions/checkout@v3
    D. jobs: deploy: if: github.branch_name == 'feature-branch' runs-on: ubuntu-latest steps: -uses: actions/checkout@v3

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your GH-200 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.