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:

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?

Options:

A.

Insights


B.

Code


C.

Actions


D.

Pull requests


E.

Issues


Expert Solution
Questions # 2:

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 # 3:

You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?

Options:

A.

Create a custom action to wrap the cloud provider's CLI.


B.

Search GitHub Marketplace for verified actions published by the cloud provider.


C.

Use the actions/jenkins-plugin action to utilize an existing Jenkins plugin for the cloud provider.


D.

Search GitHub Marketplace for actions created by GitHub.


E.

Download the CLI for the cloud provider and review the associated documentation.


Expert Solution
Questions # 4:

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 # 5:

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

Options:

A.

The action's repository includes @actions/core in the root directory.


B.

The action's repository name includes the keyword "Docker."


C.

The action.yml metadata file references a Dockerfile file.


D.

The action.yml metadata file has the runs.using value set to Docker.


Expert Solution
Questions # 6:

What are the two ways to pass data between jobs? (Choose two.)

Options:

A.

Use the copy action with restore parameter to restore the data from the cache


B.

Use the copy action to save the data that should be passed in the artifacts folder.


C.

Use the copy action with cache parameter to cache the data


D.

Use data storage.


E.

Use job outputs


F.

Use artifact storage.


Expert Solution
Questions # 7:

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

Options:

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


Expert Solution
Questions # 8:

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?

Options:

A.

environment variables


B.

workflow commands


C.

self-hosted runners


D.

enable debug logging

E composite run step


Expert Solution
Questions # 9:

In which scenarios could the GITHUB_TOKEN be used? (Choose two.)

Options:

A.

to leverage a self-hosted runner


B.

to create a repository secret


C.

to publish to GitHub Packages


D.

to create issues in the repo


E.

to read from the file system on the runner


F.

to add a member to an organization


Expert Solution
Questions # 10:

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
Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions