Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

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:

What is the simplest action type to run a shell script?

Options:

A.

Docker container action


B.

Composite action


C.

Bash script action


D.

JavaScript action


Expert Solution
Questions # 2:

You need to use a specific version of an action. How should you use v1 of an actions/javascript-action repository in your workflow?

Options:

A.

steps:

uses: actions/javascript-action/v1


B.

steps:

uses: actions/javascript-action

version: v1


C.

steps:

uses: actions/javascript-action-v1


D.

steps:

uses: actions/javascript-action@v1


Expert Solution
Questions # 3:

How many jobs will result from the following matrix configuration?

Question # 3

Options:

A.

3 jobs


B.

4 jobs


C.

5 jobs


D.

6 jobs


Expert Solution
Questions # 4:

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

Options:

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.


Expert Solution
Questions # 5:

Which workflow command would output the debug message " action successfully debugged " ?

Options:

A.

echo :debug::message=action successfully debugged "


B.

echo " debug-action successfully debugged "


C.

echo " ::debug::action successfully debugged "


D.

echo " :debug:action successfully debugged: "


Expert Solution
Questions # 6:

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

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

Disabling a workflow allows you to stop a workflow from being triggered without having to delete the file from the repo. In which scenarios would temporarily disabling a workflow be most useful? (Choose two.)

Options:

A.

A workflow sends requests to a service that is down.


B.

A workflow error produces too many, or wrong, requests, impacting external services negatively.


C.

A workflow is configured to run on self-hosted runners


D.

A workflow needs to be changed from running on a schedule to a manual trigger


E.

A runner needs to have diagnostic logging enabled.


Expert Solution
Questions # 9:

How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?

Options:

A.

Set the encrypted secret as a job-level environment variable and then reference the environment variable within the conditional statement.


B.

Create a job dependency that exposes the encrypted secret as a job output, which can then be leveraged in a subsequent dependent job.


C.

Use the secrets context within the conditional statement, e.g. ${{ secrets.MySuperSecret }}.


D.

Use a workflow command to expose the encrypted secret via a step ' s output parameter and then use the step output in the job ' s if: conditional.


Expert Solution
Questions # 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?

Options:

A.

jobs:

deploy:

if: github.ref_name == ' feature-branch '

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v3


B.

jobs:

deploy:

if: github.ref.name == ' feature-branch '

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v3


C.

jobs:

deploy:

if: github.branch_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


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