Black Friday Reward - Upto 75% off - Ends in 0d 00h 00m 00s - Coupon code: CFsave75

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

Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions
Questions # 21:

Which default GitHub environment variable indicates the owner and repository name?

Options:

A.

REPOSITORY NAME


B.

GITHUB REPOSITORY


C.

ENV REPOSITORY


D.

GITHUB WORKFLOW REPO


Expert Solution
Questions # 22:

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

Options:

A.

on:

pull_request_review:

types: [labeled]

branches:

- ' releases '

paths:

- ' apps/** '


B.

on:

pull_request:

types: [labeled]

branches:

- ' releases/** '

paths:

- ' apps '


C.

on:

pull_request:

types: [labeled]

branches:

- ' releases '

paths:

- ' apps/** '


D.

on:

pull_request_label:

branches:

- ' releases '

paths:

- ' apps/** '


Expert Solution
Questions # 23:

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

As a developer, what options should you recommend to implement standards for automation reuse? (Choose two.)

Options:

A.

Create workflow templates and store them in the organization ' s .github repository.


B.

Create reusable actions and workflows that can be called from other workflows.


C.

Create a marketplace partition to publish reusable automation for the company.


D.

Store shared corporate actions in subfolders in a defined and documented internally accessible repository.


Expert Solution
Questions # 25:

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

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

As a DevOps engineer, you are developing workflows to build an application. You have a requirement to create the build targeting multiple node versions. Which code block should you use to define the workflow?

Options:

A.

jobs:build-app:strategy:matrix:node-ver: [10, 12, 14]steps:- uses: actions/setup-node@v3with:node-version: ${{ strategy.node-ver }}


B.

jobs:build-app:strategy:matrix:node-ver: [10, 12, 14]steps:- uses: actions/setup-node@v3with:node-version: ${{ matrix.node-ver }}


C.

jobs:build-app:matrix-strategy:node-ver: [10, 12, 14]steps:- uses: actions/setup-node@v3with:node-version: ${{ matrix-strategy.node-ver }}


D.

jobs:build-app:matrix:strategy:node-ver: [10, 12, 14]steps:- uses: actions/setup-node@v3with:node-version: ${{ matrix.node-ver }}


Expert Solution
Questions # 28:

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

As a developer, you are configuring GitHub Actions to deploy VMs to production. A member of the VMOps team must provide approval before the deployment occurs. Which of the following steps should you take?

(Each correct answer presents part of the solution. Choose two.)

Options:

A.

Specify the environment named Production in the workflow jobs that deploy to the VMs.


B.

Navigate to the organization settings and create a Production environment with the VMOps team as a required reviewer.


C.

Navigate to the repository settings and create a Production environment with the VMOps team as a required reviewer.


D.

Specify the VMOps team as the owner of the environment.


E.

Add the VMs to the environment.


Expert Solution
Questions # 30:

While writing a custom action, some behavior within the runner must be changed. Which workflow commands would set an error message in the runner ' s output?

(Each correct answer presents a complete solution. Choose two.)

Options:

A.

echo " ::error message=There was an error:: "


B.

echo " ::error::There was an error "


C.

echo " ::error file=main.py,line=10,col=15::There was an error "


D.

echo " ::error=There was an error:: "


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