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 3 out of 3 pages
Viewing questions 21-30 out of questions
Questions # 21:

Which statement accurately describes using labels to route GitHub Actions workflows to runners?

Options:

A.

A user can assign multiple labels to a self-hosted runner and use the labels in a runs-on to target only runners that match all the specified labels.


B.

Labels apply only to GitHub-hosted runners and are ignored by self-hosted runners.


C.

GitHub Actions automatically assigns the runner’s IP address as a label, and the label must be used in a runs-on.


D.

To target a specific runner, the runs-on must match the runner’s hostname rather than its labels.


Expert Solution
Questions # 22:

Which of the following statements are true regarding the use of GitHub Actions on a GitHub Enterprise Server instance? (Choose three.)

Options:

A.

Use of GitHub Actions on GitHub Enterprise Server requires a persistent internet connection


B.

Actions created by GitHub are automatically available and cannot be disabled


C.

Most GitHub authored actions are automatically bundled for use on GitHub Enterprise Server


D.

Third party actions can be used on GitHub Enterprise Server by configuring GitHub Connect


E.

Actions must be defined in the .github repository


F.

Third party actions can be manually synchronized for use on GitHub Enterprise Server


Expert Solution
Questions # 23:

As a DevOps engineer, you are developing a composite action. You have a step that needs to be executed against a subdirectory. Which code snippet should you use within the composite action to specify the directory?

Options:

A.

runs:

using: " composite "

steps:

- run: $GITHUB_ACTION_PATH/script.sh

directory: ${{ inputs.dir }}

shell: bash


B.

runs:

using: " composite "

directory: ${{ inputs.dir }}

steps:

- run: $GITHUB_ACTION_PATH/script.sh

shell: bash


C.

runs:

using: " composite "

working-directory: ${{ inputs.dir }}

steps:

- run: $GITHUB_ACTION_PATH/script.sh

shell: bash


D.

runs:

using: " composite "

steps:

- run: $GITHUB_ACTION_PATH/script.sh

working-directory: ${{ inputs.dir }}

shell: bash


Expert Solution
Questions # 24:

As a DevOps engineer, you need to execute a deployment to different environments like development and testing based on the labels added to a pull request. The deployment should use the releases branch and trigger only when there is a change in the files under apps folder. Which code block should be used to define the deployment workflow trigger?

Options:

A.

on:

pull_request_label:

branches:

- ' releases '

paths:

- ' apps/** '


B.

on:

pull_request_review:

types: [labeled]

branches:

- ' releases '

paths:

- ' apps/** '


C.

on:

pull_request:

types: [labeled]

branches:

- ' releases/** '

paths:

- ' apps '


D.

on:

pull_request:

types: [labeled]

branches:

- ' releases '

paths:

- ' apps/** '


Expert Solution
Questions # 25:

Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?

Options:

A.

${{needs.job1.outputs.output1}}


B.

${{needs.job1.output1}}


C.

${{depends.job1.output1}}


D.

${{job1.outputs.output1}}


Expert Solution
Questions # 26:

Which native method should you use to pass files between jobs within the same GitHub Actions workflow?

Options:

A.

Use artifact storage.


B.

Use job outputs.


C.

Use the copy action with the cache parameter to cache the data.


D.

Use an external blob store


Expert Solution
Questions # 27:

You installed specific software on a Linux self-hosted runner. You have users with workflows that need to be able to select the runner based on the identified custom software. Which steps should you perform to prepare the runner and your users to run these workflows? (Choose two.)

Options:

A.

Create the group custom-software-on-linux and move the runner into the group.


B.

Inform users to identify the runner based on the group.


C.

Add the label custom-software to the runner.


D.

Configure the webhook and network to enable GitHub to trigger workflow.


E.

Add the label linux to the runner.


Expert Solution
Questions # 28:

What is a valid scenario regarding environment secrets?

Options:

A.

Ensuring a job cannot access environment secrets until approval is obtained from a required reviewer.


B.

Ensuring only a specific step can access an environment secret.


C.

Configuring environment secrets for connecting to GitHub Enterprise Server.


D.

Configuring environment secrets to automatically pull from Azure Key Vault.


Expert Solution
Questions # 29:

As a DevOps engineer, you are trying to leverage an organization secret in a repo. The value received in the workflow is not the same as that set in the secret. What is the most likely reason for the difference?

Options:

A.

There is a different value specified at the rego level.


B.

There is a different value specified at the workflow level.


C.

The Codespace secret doesn ' t match the expected value.


D.

The Encrypt Secret setting was not configured for the secret.


E.

There is a different value specified at the enterprise level.


Expert Solution
Questions # 30:

How should you install the bats NPM package in your workflow?

A)

Question # 30

B)

Question # 30

C)

Question # 30

D)

Question # 30

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions