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 71:

    As a developer, you are authoring a workflow that will deploy to both DevCloud and TestCloud resources. Each cloud resource is accessed with a different deployment key. Which approach best allows you to use the same reusable workflow in separate jobs to target the different cloud resources?

    A. Populate a DEPLOY_KEY repository secret with a JSON object containing DevCloud and TestCloud properties. Then specify DEPLOY_KEY.DevCloud in the secrets sections of the reusable workflow.
    B. Use a marketplace action to conditionally parse the DEPLOY_KEY repository secret based on the cloud resource name.
    C. Store the different keys in a DEPLOY_KEY environment secret in the DevCloud and TestCloud environments. Specify DEPLOY_KEY in the secrets section of the reusable workflow.
    D. Create repository secrets named DevCloud.DEPLOY_KEY and TestCloud.DEPLOY_KEY so that the reusable workflow parses the secrets by resource name.

  • Question 72:

    As a developer, how can you identify a JavaScript action on GitHub?

    A. The action’s repository includes a js.yml file in the .github/workflows directory.
    B. The action’s repository name includes the keyword “JavaScript.”
    C. The action.yml metadata file has the runs.using value set to node16.
    D. The action.yml metadata file references a package.json file.

  • Question 73:

    You must share a secret across multiple repositories in your enterprise. What’s the correct scope for the secret?

    A. repository secret
    B. environment secret
    C. organization secret
    D. enterprise secret

  • Question 74:

    As a developer, how can you identify a composite action on GitHub?

    A. The action’s repository name includes the keyword “composite.”
    B. The action’s repository includes an init.sh file in the root directory.
    C. The action’s repository includes Dockerfile and package.json files.
    D. The action.yml metadata file has the runs.using value set to composite.

  • Question 75:

    Which action type should be used to bundle a series of run steps into a reusable custom action?

    A. Composite action
    B. Bash script action
    C. Docker container action
    D. JavaScript action

  • Question 76:

    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? (Each correct answer presents part of the solution. Choose two.)

    A. path: the file path on the runner to cache or restore
    B. dependency: the name and version of a package to cache or restore
    C. key: the key created when saving a cache and the key used to search for a cache
    D. restore-keys: the copy action key used with cache parameter to cache the data
    E. cache-hit: the copy action key used with restore parameter to restore the data from the cache
    F. ref: the ref name of the branch to access and restore a cache created

  • Question 77:

    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?

    A. POST /repos/:owner/:repo/actions/runs/:run_id/logs
    B. GET /repos/:owner/:repo/actions/runs/:run_id/logs
    C. POST /repos/:owner/:repo/actions/runs/:run_id
    D. GET /repos/:owner/:repo/actions/artifacts/logs

  • Question 78:

    A single secret must be accessed by workflows in specific repositories. What is the best way to create the secret?

    A. Create an environment secret at the organization level and leverage that environment in each of the specified repositories.
    B. Create an organization secret, specify Selected repositories as the Repository access, and select the required repositories.
    C. Create the secret in one of the repositories, check the Share secret option, and select the required repositories.
    D. Store the secret in a supported external key vault. Configure OpenID Connect (OIDC) to allow access to the external vault and link the secret from the external key vault in each of the specific repositories.

  • Question 79:

    What is the proper syntax to reference the system-provided run number variable?

    A. ${{var.GITHUB_RUN_NUMBER}}
    B. ${{env.GITHUB_RUN_NUMBER}}
    C. $GITHUB_RUN_NUMBER
    D. ${{GITHUB_RUN_NUMBER}}
    E. $github.run_number

  • Question 80:

    Which of the following is the proper syntax to specify a custom environment variable named MY_VARIABLE with the value my-value?

    A. var: MY_VARIABLE = my-value
    B. environment: MY_VARIABLE = my-value
    C. var: MY_VARIABLE: my-value
    D. env: MY_VARIABLE = my-value
    E. environment: MY_VARIABLE: my-value
    F. env: MY_VARIABLE: my-value

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.