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

Based on the YAML below, which two statements are correct? (Choose two.)

Options:

A.

This workflow will publish a package to an npm registry.


B.

This workflow will publish a package to GitHub Packages.


C.

This workflow file is using a matrix strategy.


D.

The workflow job publish-npm will only run after the build job passes.


Expert Solution
Questions # 12:

You are a DevOps engineer working on a custom action. You want to conditionally run a script at the start of the action, before the main entrypoint. Which code block should be used to define the metadata file for your custom action?

Options:

A.

runs:using: ' node16 ' start: ' start.js ' start-if: github.event_name == ' push ' main: ' index.js '


B.

runs:using: ' node16 ' pre: ' start.js ' pre-if: github.event_name == ' push ' main: ' index.js '


C.

runs:using: ' node16 ' pre-if: github.event_name == ' push ' then ' start.js ' main: ' index.js '


D.

runs:using: ' node16 ' before: ' start.js ' before-if: github.event_name == ' push ' main: ' index.js '


Expert Solution
Questions # 13:

As a developer, how should you enable step debug logging for a workflow?

Options:

A.

Include the following code block in your workflow:

defaults:

ACTIONS_STEP_DEBUG: true


B.

Use the --actions-step-debug flag when calling the workflow.


C.

Set the ACTIONS_STEP_DEBUG secret or variable at the repository level to true.


D.

Include the following code block in your workflow:

env:

ACTIONS_STEP_DEBUG: true


Expert Solution
Questions # 14:

While awaiting approval, how many days can a workflow be in the “Waiting” state before it automatically fails?

Options:

A.

7 days


B.

14 days


C.

30 days


D.

60 days


Expert Solution
Questions # 15:

Your organization is managing secrets using GitHub encrypted secrets, including a secret named SuperSecret. As a developer, you need to create a version of that secret that contains a different value for use in a workflow that is scoped to a specific repository named MyRepo. How should you store the secret to access your specific version within your workflow?

Options:

A.

Create a duplicate entry for SuperSecret in the encrypted secret store and specify MyRepo as the scope.


B.

Create MyRepo_SuperSecret in GitHub encrypted secrets to specify the scope to MyRepo.


C.

Create a file with the SuperSecret. information in the .qithub/secrets folder in MyRepo.


D.

Create and access SuperSecret from the secrets store in MyRepo.


Expert Solution
Questions # 16:

In the following workflow file, line 5 interprets lines 3 and 4 as Python. Which of the following is a valid option to complete line 5?

1 steps:

2 - run: |

3 import os

4 print(os.environ[ ' PATH ' ])

5

Options:

A.

with: python


B.

shell: bash


C.

working-directory: .github/python


D.

shell: python


Expert Solution
Questions # 17:

As a developer, you are designing a workflow and need to communicate with the runner machine to set environment variables, output values used by other actions, add debug messages to the output logs, and other tasks. Which of the following options should you use?

Options:

A.

environment variables


B.

workflow commands


C.

self-hosted runners


D.

enable debug loggingE composite run step


Expert Solution
Questions # 18:

Which command can you include in your workflow file to set the output parameter for an action?

Options:

A.

echo " action_color=purple " > > $GITHUB_OUTPUT


B.

echo " action_color=purple " > > $GITHUB_ENV


C.

echo " ::add-mask::$ACTION_COLOR "


D.

echo " ::debug::action_color=purple "


Expert Solution
Questions # 19:

An organization ' s policies specify that only local actions are allowed. How should actions be distributed for this organization?

Options:

A.

Via the GitHub Marketplace


B.

Via the .github repository owned by the organization


C.

Via a repository owned by a third party


D.

Via repositories owned by the organization


Expert Solution
Questions # 20:

As a DevOps engineer, you are developing a container action. You need to execute a cleanup script after completing the main script execution. Which code block should be used to define the cleanup script?

Options:

A.

B.

C.

D.

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