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 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

As a developer, you want to run a workflow from the Actions tab in GitHub. Which YAML snippet should you use to match the interface in this image?

Question # 11

A)

Question # 11

B)

Question # 11

C)

D)Question # 11

Question # 11

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 12:

As a developer, you need to add the correct syntax to allow the following workflow file to be triggered by multiple types of events.

Which two code blocks should you add starting at line 5? Each correct answer presents a complete solution.

NOTE: Each correct answer is worth one point.

4 name: Node CI/CD

5

6

7

8 jobs:

9 build:

10 runs-on:

11 steps:

12 - uses: actions/checkout@v2

13 - uses: actions/setup-node@v1

14 with:

15 node-version: 12

16 - run: npm ci

17 - run: npm test

18

Options:

A.

on:

env:

- ' prod '

- ' qa '

- ' test '


B.

on: [push, commit]


C.

on: [push, pull_request]


D.

on:

branches:

- ' main '

- ' dev '


E.

on:

push:

branches:

- main

release:

types:

- created


F.

on:

schedule:

- cron: ' */15 * * * * '

initiate:

- ' main '


Expert Solution
Questions # 13:

What can be used to set a failed status of an action from its code?

Options:

A.

@actions/github toolkit


B.

JavaScript dist/ folder


C.

Dockerfile CMD


D.

a non-zero exit code


E.

output variable


F.

composite run step


Expert Solution
Questions # 14:

What are the two most significant advantages of adding documentation while distributing custom actions? Each correct answer presents a complete solution.

NOTE: Each correct answer is worth one point.

Options:

A.

It creates a readme.md for the consuming workflow.


B.

It shares the description of the action to the users.


C.

It provides an example of the action.


D.

It generates auto completion when using the action in a workflow.


Expert Solution
Questions # 15:

You need to perform a task that requires running a custom script in a GitHub Actions workflow. The script must run within the workflow environment without requiring an external container or prebuilt image.

What should you use?

Options:

A.

a JavaScript action


B.

a Docker container action


C.

a run step


D.

a composite action


Expert Solution
Questions # 16:

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

Your organization needs to simplify reusing and maintaining automation in your GitHub Enterprise Cloud. Which components can be directly reused across all repositories in an organization? (Choose three.)

Options:

A.

self-hosted runners


B.

actions stored m private repositories in the organization


C.

encrypted secrets


D.

custom Docker actions stored in GitHub Container Registry


E.

actions stored in an organizational partition in the GitHub Marketplace


F.

workflow templates


Expert Solution
Questions # 18:

As a developer, you need to make sure that only actions from trusted sources are available for use in your GitHub Enterprise Cloud organization. Which of the following statements are true? (Choose three.)

Options:

A.

Specific actions can individually be enabled for the organization, including version information.


B.

GitHub-verified actions can be collectively enabled for use in the enterprise.


C.

Actions can be restricted to only those available in the enterprise.


D.

Actions created by GitHub are automatically enabled and cannot be disabled.


E.

Individual third-party actions enabled with a specific tag will prevent updated versions of the action from introducing vulnerabilities.


F.

Actions can be published to an internal marketplace.


Expert Solution
Questions # 19:

Which run: command will set a step ' s output?

Options:

A.

run: echo " MY_OUTPUT=foo " > > $GITHUB_OUTPUT


B.

run: export MY_OUTPUT=foo


C.

run: echo ${{ $GITHUB_OUTPUT=foo }}


D.

run: echo " ::set-env name=MY OUTPUT::foo "


Expert Solution
Questions # 20:

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

Options:

A.

The action’s repository includes Dockerfile and package.json files.


B.

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


C.

The action’s repository name includes the keyword “composite.”


D.

The action’s repository includes an init.sh file in the root directory.


Expert Solution
Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions