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 4 out of 5 pages
Viewing questions 31-40 out of questions
Questions # 31:

Which of the following scenarios would require the use of self-hosted runners instead of GitHub-hosted runners?

Options:

A.

running more than the three concurrent workflows supported by GitHub-hosted runners


B.

exceeding 50,000 monthly minutes of build time


C.

using Docker containers as part of the workflow


D.

using specialized hardware configurations required for workflows


E.

performing builds on macOS


Expert Solution
Questions # 32:

You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?

Options:

A.

check_suite


B.

workflow_run


C.

deployment


D.

repository_dispatch


Expert Solution
Questions # 33:

Which step is using the dbserver environment variable correctly?

Options:

A.

steps:

- name: Hello world

run: echo $dbserver

variables:

dbserver: orgserver1


B.

steps:

- name: Hello world

run: echo $dbserver

env:

dbserver: orgserver1


C.

steps:

- name: Hello world

run: echo $dbserver

env:

- name: dbserver

value: orgserver1


D.

steps:

- name: Hello world

run: echo $dbserver

environment:

dbserver: orgserver1


Expert Solution
Questions # 34:

You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you implement the conditional execution of the job?

Options:

A.

jobs:

deploy:

if: github.branch_name == ' feature-branch '

runs-on: ubuntu-latest


B.

jobs:

deploy:

if: github.ref_name == ' feature-branch '

runs-on: ubuntu-latest


C.

jobs:

deploy:

if: github.ref.name = ' feature-branch '

runs-on: ubuntu-latest


D.

jobs:

deploy:

if: github.branch.name == ' feature-branch '

runs-on: ubuntu-latest


Expert Solution
Questions # 35:

You have exactly one Windows x64 self-hosted runner, and it is configured with custom tools. Which syntax could you use in the workflow to target that runner?

Options:

A.

self-hosted: [windows-x64]


B.

runs-on: [self-hosted, windows, x64]


C.

runs-on: windows-latest


D.

self-hosted: [windows, x64]


Expert Solution
Questions # 36:

What is the right method to ensure users approve a workflow before the next step proceeds?

Options:

A.

creating a branch protection rule and only allow certain users access


B.

granting users workflow approval permissions


C.

adding users as required reviewers for an environment


D.

granting users repository approval permissions


Expert Solution
Questions # 37:

Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?

Options:

A.

ENV_ACTOR


B.

GITHUB_WORKFLOW_ACTOR


C.

GITHUB_ACTOR


D.

GITHUB_USER


Expert Solution
Questions # 38:

You need to use a specific version of an action. How should you use v1 of an actions/javascript-action repository in your workflow?

Options:

A.

steps:uses: actions/javascript-action/v1


B.

steps:uses: actions/javascript-actionversion: v1


C.

steps:uses: actions/javascript-action-v1


D.

steps:uses: actions/javascript-action@v1


Expert Solution
Questions # 39:

What is the minimal syntax for declaring an output named foo for an action?

A)

B)

C)

D)

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 40:

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:- mainrelease:types:- created


F.

on:schedule:- cron: ' */15 * * * * ' initiate:- ' main '


Expert Solution
Viewing page 4 out of 5 pages
Viewing questions 31-40 out of questions