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 1 out of 5 pages
Viewing questions 1-10 out of questions
Questions # 1:

What are the advantages of using a matrix strategy in a job definition? (Choose two.)

Options:

A.

It can test code in multiple versions of a programming language.


B.

It can decrease the costs for running multiple combinations of programming language/operating systems.


C.

It can run up to 512 jobs per workflow run.


D.

It can test code in multiple operating systems.


Expert Solution
Questions # 2:

You are a DevOps engineer in ABC Corp. You need to schedule your deployment workflow twice a week at 7:45 UTC every Wednesday and Saturday. What is the appropriate YAML structure?

Options:

A.

on:

schedule:

- cron: ' 45 7 * * 3,6 '


B.

on:

cron:

- schedule: ' 45 7 * * 3,6 '


C.

on:

schedule: ' 45 7 * * 3,6 '


D.

on:

cron: ' 45 7 * * 3,6 '


Expert Solution
Questions # 3:

Which statement is true about using default environment variables?

Options:

A.

The environment variables can be read in workflows using the ENV: variable_name syntax.


B.

The environment variables created should be prefixed with GITHUB_ to ensure they can be accessed in workflows


C.

The environment variables can be set in the defaults: sections of the workflow


D.

The GITHUB_WORKSPACE environment variable should be used to access files from within the runner.


Expert Solution
Questions # 4:
Options:

A.

Scheduled workflows run on the:


B.

latest commit and branch on which the workflow was triggered,


C.

latest commit from the branch named schedule,


D.

latest commit from the branch named main,


E.

specified commit and branch from the workflow YAML file,


F.

latest commit on the default or base branch


Expert Solution
Questions # 5:

What is the most suitable action type for a custom action written in TypeScript?

Options:

A.

Composite run step


B.

Bash script action


C.

JavaScript action


D.

Docker container action


Expert Solution
Questions # 6:

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 "

steps:

- run: $GITHUB_ACTION_PATH/script.sh

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

shell: bash


Expert Solution
Questions # 7:

As a developer, one of your workflows requires Xcode version 11.2 hosted on macOS Catalina (version 10.15). You have already created and configured a self-hosted runner to conform to those requirements and registered it with your organization. What else should you do to ensure that the workflow accesses the correct runner instance?

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

Options:

A.

Create runner groups named macos-10.15 and xcode-11.2.


B.

In the workflow, specify:

runs-on: [${{ groups.macos-10.15 }}, ${{ groups.xcode-11.2 }}]


C.

Assign the custom labels to the self-hosted runner.


D.

Create custom runner labels for macos-10.15 and xcode-11.2.


E.

Add your runner to the appropriate runner groups.


F.

In the workflow, specify:

runs-on: [self-hosted, macos-10.15, xcode-11.2]


Expert Solution
Questions # 8:

How should you print a debug message in your workflow?

Options:

A.

echo " Set variable MyVariable to true " > > $DEBUG_MESSAGE


B.

echo " ::debug::Set variable MyVariable to true "


C.

echo " ::add-mask::Set variable MyVariable to true "


D.

echo " debug_message=Set variable MyVariable to true " > > $GITHUB_OUTPUT


Expert Solution
Questions # 9:

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

Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?

Options:

A.

run: echo " ::set-env name=FOO::bar "


B.

run: echo " FOO=bar " > > $GITHUB_ENV


C.

run: echo ${{ $FOO=bar }}


D.

run: export FOO=bar


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