Pass the Microsoft GitHub Administrator GH-200 Questions and answers with CertsForce

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

Where should workflow files be stored to be triggered by events in a repository?

Options:

A.

.github/workflows/


B.

.github/actions/


C.

Nowhere; they must be attached to an act on in the GitHub user interface


D.

anywhere


E.

.workflows/


Expert Solution
Questions # 2:

You have exactly one Windows x64 self-hosted runner, and it is configured with custom tools. Which syntax could you use in the workflow to target that runner?

Options:

A.

self-hosted: [windows-x64]


B.

runs-on: [self-hosted, windows, x64]


C.

runs-on: windows-latest


D.

self-hosted: [windows, x64]


Expert Solution
Questions # 3:

As a developer, what is the safest way to reference an action to prevent modification of the underlying code?

Options:

A.

Use a commit hash.


B.

Use a branch name.


C.

Use a patch release tag.


D.

Use a major release tag.


Expert Solution
Questions # 4:

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:

A.

GH-200 Question 4 Option 1


B.

4


C.

4


D.

4


Expert Solution
Questions # 5:

In which locations can actions be referenced by workflows? (Choose three.)

Options:

A.

a separate public repository


B.

an .action extension file in the repository


C.

the same repository as the workflow


D.

a published Docker container image on Docker Hub


E.

the runs-on: keyword of a workflow file


F.

the repository's Secrets settings page


G.

a public NPM registry


Expert Solution
Questions # 6:

As a developer, you are using a Docker container action in your workflow. What is required for the action to run successfully?

Options:

A.

The job env must be set to a Linux environment.


B.

The job runs-on must specify a Linux machine with Docker installed.


C.

The referenced action must be hosted on Docker Hub.


D.

The action must be published to the GitHub Marketplace.


Expert Solution
Questions # 7:

Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?

Options:

A.

ENV_ACTOR


B.

GITHUB_WORKFLOW_ACTOR


C.

GITHUB_ACTOR


D.

GITHUB_USER


Expert Solution
Questions # 8:

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:

A.

POST /repos/:owner/:repo/actions/runs/:run_id


B.

GET /repos/:owner/:repo/actions/artifacts/logs


C.

GET /repos/:owner/:repo/actions/runs/:run_id/logs


D.

POST /repos/:owner/:repo/actions/runs/:run_id/logs


Expert Solution
Questions # 9:

As a developer, your self-hosted runner sometimes looses connection while running jobs. How should you troubleshoot the issue affecting your self-hosted runner?

Options:

A.

Set the DEBUG environment variable to true before starting the self-hosted runner to produce more verbose console output.


B.

Locate the self-hosted runner in your repository's settings page and download its log archive.


C.

Access the self-hosted runner's installation directory and look for log files in the _diag folder.


D.

Start the self-hosted runner with the --debug flag to produce more verbose console output.


Expert Solution
Questions # 10:

As a developer, you need to integrate a GitHub Actions workflow with a third-party code quality provider that uses the Checks API. How should you trigger a follow-up workflow?

Options:

A.

Add the workflow_run webhook event as a trigger for the workflow for the code quality integration name


B.

Add the check_run webhook event as a trigger for the workflow when the code quality integration is completed


C.

Add the pull_request webhook event as a trigger for the workflow when the code quality integration is synchronized


D.

Add the deployment webhook event as a trigger for the workflow when the code quality integration is completed


Expert Solution
Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions